[go: up one dir, main page]

dhat 0.3.0-pre.1

A library for heap profiling and ad hoc profiling with DHAT.
Documentation
1
2
3
4
5
6
7
8
9
10
// This is a very simple example of how to do heap profiling of a program.

#[global_allocator]
static ALLOC: dhat::Alloc = dhat::Alloc;

fn main() {
    let _profiler = dhat::Profiler::new_heap();

    println!("Hello, world!");
}