complete version
This commit is contained in:
9
string-dhat/src/main.rs
Normal file
9
string-dhat/src/main.rs
Normal file
@ -0,0 +1,9 @@
|
||||
#[global_allocator]
|
||||
static ALLOC: dhat::Alloc = dhat::Alloc;
|
||||
|
||||
fn main() {
|
||||
let _profiler = dhat::Profiler::new_heap();
|
||||
|
||||
let s = String::from("hello");
|
||||
println!("{}", s);
|
||||
}
|
Reference in New Issue
Block a user