Macro rs_tracing::open_trace_file
source · macro_rules! open_trace_file {
($dir:expr) => { ... };
}
Expand description
Activates trace and opens a new trace file with the name <pid>.trace in the dir specified.
Examples
{
open_trace_file!("/tmp").unwrap();
{
trace_scoped!("event name");
println!("this is timed");
}
close_trace_file!();
}