Module trace_recorder

Module trace_recorder 

Source
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§

EventTrace
Represents a traced event.
Info
Common info traced about events and spans.
ProcessTrace
Represents a single app process in a recorded trace.
SpanTrace
Represents a traced span.
ThreadTrace
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.