Skip to main content

Module profile

Module profile 

Source
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§

TraceGuard
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.