complete version

This commit is contained in:
2022-06-17 13:42:33 +01:00
parent 7e9e16690e
commit 3d2a9c67e7
17 changed files with 205 additions and 44 deletions

9
string-dhat/src/main.rs Normal file
View 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);
}