[][src]Macro rs_tracing::open_trace_file

macro_rules! open_trace_file {
    ($dir:expr) => { ... };
}

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!();
}