Skip to main content

complete

Macro complete 

Source
macro_rules! complete {
    ($category:tt, $label:tt, $start_timestamp:expr, $context:expr $(, $key:tt => $val:expr)* $(,)?) => { ... };
    ($category:tt, $label:tt, $start_timestamp:expr $(, $key:tt => $val:expr)* $(,)?) => { ... };
}
Expand description

Writes a duration complete event associated with the current thread when the given category is enabled.

§Arguments:

  • category: Filter category for the event. Expects a string literal or expression.
  • label: Label for the event. Expects a string literal or expression.
  • start_timestamp: The starting timestamp for the event. Must be convertible to i64.
  • …: List of key => value argument pairs.