Skip to main content

Module decoder

Module decoder 

Available on crate feature dial9 only.
Expand description

Streaming decoder for reading trace files.

Decoder reads the file header, processes schema and string-pool frames, and yields events as DecodedFrame (owned) or DecodedFrameRef (zero-copy). It also implements Iterator and provides a for_each_event callback API for allocation-free processing.

Structs§

DecodeError
Error returned when the decoder cannot continue reading the stream. Because frames are not length-prefixed, a decode error is unrecoverable — the decoder cannot skip the malformed frame to find the next one.
Decoder
Streaming trace file decoder.
EventIter
Iterator that yields only DecodedFrameRef::Event frames, consuming non-event frames to keep decoder state up to date.
RawEvent
A decoded event passed to Decoder::for_each_event.
StackPool
A map from interned stack-frame IDs to their resolved address vectors.
StringPool
A map from interned string IDs to their resolved string values.

Enums§

DecodedFrame
Decoded events yielded by the decoder.
DecodedFrameRef
Zero-copy decoded frame that borrows from the input buffer.
TryForEachError
Error returned by Decoder::try_for_each_event.