pprof 0.3.5

An internal perf tools for rust programs.
Documentation

pprof


let guard = pprof::ProfilerGuard::new(100).unwrap();

// Some codes

match guard.report().build() {
    Ok(report) => {
        let file = File::create("flamegraph.svg").unwrap();
        report.flamegraph(file).unwrap();

        println!("report: {}", &report);
    }
    Err(_) => {}
};