probe 0.5.2

Static instrumentation probes
Documentation
1
2
3
4
5
6
7
8
9
10
11
use probe::probe;
fn main() {
    probe!(foo, begin);
    let mut total = 0;
    for i in 0..100 {
        total += i;
        probe!(foo, loop, i, total);
    }
    assert_eq!(total, 4950);
    probe!(foo, end);
}