fuchsia_trace

Function duration_begin

Source
pub fn duration_begin(
    context: &TraceCategoryContext,
    name: &'static CStr,
    args: &[Arg<'_>],
)
Expand description

Writes a duration begin event only. This event must be matched by a duration end event with the same category and name.

Durations describe work which is happening synchronously on one 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 duration with additional information. The arguments provided to matching duration begin and duration end events are combined together in the trace; it is not necessary to repeat them.