[go: up one dir, main page]

rust_hawktracer 0.3.1

Rust bindings for hawktracer profiling library.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
extern crate rust_hawktracer;
use std::{thread, time};
use rust_hawktracer::*;

pub fn do_work() { 
    scoped_tracepoint!(_work);

    for _ in 0..3 {
        scoped_tracepoint!(_test);
        thread::sleep(time::Duration::from_millis(30));
    }

    {
        scoped_tracepoint!(_test);
        thread::sleep(time::Duration::from_millis(10));
    }
}