Expand description
File-backed tracing for profiling CLI execution.
Profiling uses tracing spans as the primary timing primitive. The subscriber emits JSONL span lifecycle events; span close events include elapsed busy/idle time, so nested functions and sections can be profiled without bespoke timers.
Structs§
- Trace
Guard - Owns the background tracing worker. Dropping it flushes the trace file.
Constants§
- TARGET
- Tracing target used by every profiling event.
Functions§
- enabled
- init_
file_ tracing - Initialize JSONL tracing to
path. - section
- Build a profiling span for a named logical section.