Skip to main content

Module trace

Module trace 

Source
Expand description

Structured execution tracing for the Compact runtime IR interpreter.

Designed to be zero-cost when disabled (TraceLevel::Off): every hook in the interpreter checks state.trace.is_some() before constructing any event. When enabled (Calls or Full), captures the exact sequence of circuit frames, witness invocations, ledger ADT operations, emitted events, cross-contract hops, and assertion failures — including partial traces leading up to a revert.

Structs§

ExecutionTrace
Ordered sequence of TraceEvents recorded during a single circuit or call-tree execution.

Enums§

TraceEvent
One structured event emitted by the runtime IR interpreter during circuit execution.
TraceLevel
Verbosity level controlling which interpreter events are recorded.

Functions§

format_value_compact
Format a RuntimeValue concisely for trace display (truncating long byte arrays and deeply nested containers).