Function fuchsia_trace::async_begin

source ·
pub fn async_begin(
    id: Id,
    category: &'static CStr,
    name: &'static CStr,
    args: &[Arg<'_>]
Expand description

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.

Async events describe concurrent work that may or may not migrate threads, or be otherwise interleaved with other work on the same thread. They can be nested to represent a control flow stack.

0 to 15 arguments can be associated with the event, each of which is used to annotate the async event with additional information. Arguments provided in matching async begin and end events are combined together in the trace; it is not necessary to repeat them.