rprofile 0.1.1

A simple crate to measure processor timings in selected samples of execution
Documentation

The crate allow to trace sample execution, in-between start and stop trace, and extract statistics of the functions consuming the most resources.

Example usage

fn k() {
    trace_cpu!("k", for _i in 0..1000 {})
}

fn f() {
    for i in 0..100 {
        trace_cpu!("g", g());
    }
    for j in 0..10000 {}
}

fn g() {
    for i in 0..100 {
        k()
    }
}
fn main() {
    start();
    trace_cpu!("f1", f());
    trace_cpu!("f2", f());
    stop();
    f();
    show();
}