Crate fuchsia_trace
source ·Macros
Convenience macro for the
alert
function.Convenience macro for the
async_enter
function, which can be used to trace the duration of a
scope containing async code. This macro returns the drop guard, which the caller may then
choose to manage.Convenience macro for the
async_instant
function, which can be used to emit an async instant
event.Convenience macro for the
counter
function.Creates a
&'static CStr
from a string literal.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
.Convenience macro for the
duration_begin
function.Convenience macro for the
duration_end
function.Convenience macro for the
flow_begin
function.Convenience macro for the
flow_end
function.Convenience macro for the
flow_step
function.Convenience macro for the
instant
function.Creates a convenience macro that returns a string literal.
Structs
Arg
holds an argument to a tracing function, which can be one of many types.AsyncScope maintains state around the context of async events generated via the
async_enter! macro.
The scope of a duration event, returned by the
duration
function and the duration!
macro.
The duration will be end'ed
when this object is dropped.An identifier for flows and async spans.
Enums
Scope
represents the scope of a trace event.Traits
A trait for types that can be the values of an argument set.
Functions
Sends an alert, which can be mapped to an action.
Writes an async begin event. This event must be matched by an async end event with the same
id, category, and name. This function is intended to be called through use of the
async_enter!
macro.Writes an async end event. This event must be associated with a prior async begin event
with the same id, category, and name. This function is intended to be called implicitly
when the
AsyncScope
object created through use of the async_enter!
macro is dropped.Writes an async event which ends when the current scope exits, or the
end
method is is
manually called.Writes an async instant event with the specified id.
Returns true if tracing has been enabled for the given category.
Writes a counter event with the specified id.
Writes a duration event which ends when the current scope exits, or the
end
method is manually called.Writes a duration begin event only.
This event must be matched by a duration end event with the same category and name.
Writes a duration end event only.
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.
Writes a flow end event with the specified id.
Writes a flow step event with the specified id.
Writes an instant event representing a single moment in time.
The number of
args
must not be greater than 15.Returns true if tracing is enabled.