Skip to main content

Module profile

Module profile 

Source
Expand description

Lightweight stage profiling and a portable clock.

std::time::Instant is unavailable on wasm32-unknown-unknown; the WASM bindings install a performance.now()-backed clock via set_clock.

Structs§

Profiler
Collects per-stage wall-clock durations. Cheap enough to be always on: a handful of entries per decode, recorded from whichever thread runs the stage.

Enums§

Stage
Decode pipeline stages reported by --profile and DecodeStatistics.

Functions§

now_ms
Monotonic milliseconds from an arbitrary origin.
set_clock
Install a millisecond clock (used on targets without Instant).