profi 0.1.2

Scope-based single and multithreaded profiling
Documentation
1
2
3
4
5
6
7
8
9
10
use profi::{print_on_exit, prof};

fn main() {
    print_on_exit!();

    for _ in 0..100 {
        prof!(iteration);
        std::thread::sleep(std::time::Duration::from_millis(10));
    }
}