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§
- Decode
Error - 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.
- Event
Iter - Iterator that yields only
DecodedFrameRef::Eventframes, consuming non-event frames to keep decoder state up to date. - RawEvent
- A decoded event passed to
Decoder::for_each_event. - Stack
Pool - A map from interned stack-frame IDs to their resolved address vectors.
- String
Pool - A map from interned string IDs to their resolved string values.
Enums§
- Decoded
Frame - Decoded events yielded by the decoder.
- Decoded
Frame Ref - Zero-copy decoded frame that borrows from the input buffer.
- TryFor
Each Error - Error returned by
Decoder::try_for_each_event.