Structs§
- Allocations
- The (de)allocations of a thread, as attached to
TraceRow::EnterandTraceRow::Exit. - Delta
Encoded Timestamp - A timestamp as serialized in the trace stream: the signed difference in microseconds to the
timestamp of the previous row with a timestamp. See “Timestamps” in the docs of
TraceRow. - Timestamp
Decoder - Converts the serialized timestamps of a trace stream back into absolute timestamps. Every
row has to be passed to
TimestampDecoder::decodein stream order. See “Timestamps” in the docs ofTraceRow. - Timestamp
Encoder - Converts absolute timestamps into the serialized form of the trace stream. See “Timestamps” in
the docs of
TraceRow.
Enums§
- Timestamp
Decode Error - The trace stream contains an invalid timestamp.
- Trace
Row - A raw trace line.
- Trace
Value
Constants§
- TRACE_
HEADER - The magic bytes at the start of every trace file. They include the version of the trace
format, which must be bumped on every incompatible change to
TraceRow. The header is followed by a stream of [postcard] serializedTraceRows. - TRACE_
HEADER_ PREFIX - The part of
TRACE_HEADERthat is the same for all versions.
Functions§
- check_
trace_ header - Checks that
datastarts with theTRACE_HEADERof the supported trace format version.datamust contain at leastTRACE_HEADER.len()bytes, unless the file is shorter.