optick 1.3.4

Super Lightweight Performance Profiler
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
fn update(frame_num: u32) {
    optick::event!();
    optick::tag!("frame", frame_num);

    use std::{thread, time};
    let duration = time::Duration::from_millis(33);
    thread::sleep(duration);
}

pub fn main() {
    let mut frame = 0; 
    loop {
        optick::next_frame();
        update(frame);
        frame = frame + 1;
    }
}