Macro rs_tracing::trace_end
source · macro_rules! trace_end {
($name: expr) => { ... };
($name: expr, $($json:tt)+) => { ... };
}
Expand description
Mark end of event, needs to be proceeded by corresponding trace_begin.
The event type is Duration Event (E) with an instant time. Start and end of the event must be on the same thread. If you provide custom data to both the trace_begin and trace_end then the arguments will be merged.
$name: name of the trace event.
$json: optional custom data formated as serdes json macro.
Examples
trace_begin!("event name");
println!("this is timed");
trace_end!("event name");
trace_begin!("event name","custom":"data");
println!("this is timed");
trace_end!("event name","u32":4);