tracers 0.1.0

Generates very low overhead native trace points using stable Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#![deny(warnings)]

use tracers_macros::probe;
use tracers_macros::tracer;

#[tracer]
trait SimpleTestProbes {
    fn probe0();
    fn probe1(foo: &str);
}

fn main() {
    println!("About to fire the probes...");
    probe!(SimpleTestProbes::probe0());
    probe!(SimpleTestProbes::probe1("foo bar baz"));
    println!("The probes were fired");
}