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.
  • 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.
  • 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§

  • 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.
  • RAII wrapper for trace contexts without a specific associated category.
  • 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.
  • RAII wrapper for a trace context for a specific category.
  • Wraps a Future and writes duration events when the future is created, dropped, and every time it’s polled. The duration events are connected by flow events.
  • Arguments for TraceFuture and TraceFutureExt. Use trace_future_args! to construct this object.

Enums§

Constants§

Traits§

  • A trait for types that can be the values of an argument set.
  • Extension trait for tracing futures.

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.
  • Write a “duration complete” record representing both the beginning and end of a duration.
  • 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.

Type Aliases§