macro_rules! setup_trace_marker {
    ($(($cat:ident, $enabled:literal)),+) => { ... };
}
Expand description

Macro used to set up the trace environment categories. It takes a variable number of arguments in pairs of category, boolean value on whether or not the tracing category is enabled at compile time.

§Example usage

setup_trace_marker!(
    (Category1, true),
    (Category2, false)
);

Categories that are enabled will have their events traced at runtime via trace_event_begin!(), trace_event_end!(), or trace_event!() scoped tracing. The categories that are marked as false will have their events skipped.