Crate storage_trace

Crate storage_trace 

Source

Macros§

duration
Convenience macro for the duration function that can be used to trace the duration of a scope. If you need finer grained control over when a duration starts and stops, see duration_begin and duration_end.
flow_begin
Convenience macro for the flow_begin function.
flow_end
Convenience macro for the flow_end function.
flow_step
Convenience macro for the flow_step function.
instant
Convenience macro for the instant function.
trace_future_args
Macro for constructing TraceFutureArgs. The trace arguments won’t be constructed if the category is not enabled. If the category becomes enabled while the TraceFuture is still alive then the duration events will still be written but without the trace arguments.

Structs§

Id
An identifier for flows and async spans.

Enums§

Scope
Scope represents the scope of a trace event.

Traits§

TraceFutureExt
Extension trait for tracing futures.

Functions§

duration
Writes a duration event which ends when the current scope exits, or the end method is manually called.
flow_begin
Writes a flow begin event with the specified id. This event may be followed by flow steps events and must be matched by a flow end event with the same category, name, and id.
flow_end
Writes a flow end event with the specified id.
flow_step
Writes a flow step event with the specified id.
instant
Writes an instant event representing a single moment in time. The number of args must not be greater than 15.