Expand description
Trace recording and data model.
All tracing instrumentation in Zng projects is done using the tracing crate, this module uses the tracing-chrome crate
to record traces that can be viewed in chrome://tracing or ui.perfetto.dev and can be parsed to the Trace data model.
Structs§
- Event
Trace - Represents a traced event.
- Info
- Common info traced about events and spans.
- Process
Trace - Represents a single app process in a recorded trace.
- Span
Trace - Represents a traced span.
- Thread
Trace - Represents a single thread in an app process in a recorded trace.
- Trace
- Represents a recorded trace.
Functions§
- start_
recording - Starts recording, stops on process exit or on
stop_recording. - stop_
recording - Stops recording and flushes.