Skip to main content

Module profile

Module profile 

Source
Expand description

Lightweight span profiler. Enabled by setting ITE_PROFILE=<output-path>; when unset, spans cost one branch. The dump is a plain-text table.

Structs§

Registry
Collects labeled durations and renders a summary table.
Span
Times a scope and records it in GLOBAL on drop (no-op when disabled).
Stats
Summary statistics over a set of durations.

Statics§

GLOBAL

Functions§

enabled
format_duration
Adaptive human-readable duration: ns, µs, ms, or s.
output_path
The output path from ITE_PROFILE, if profiling is enabled.
span