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

7
string-dhat/Cargo.lock generated Normal file
View File

@ -0,0 +1,7 @@
# This file is automatically @generated by Cargo.
# It is not intended for manual editing.
version = 3
[[package]]
name = "string-dhat"
version = "0.1.0"

7
string-dhat/Cargo.toml Normal file
View File

@ -0,0 +1,7 @@
[package]
name = "string-dhat"
version = "0.1.0"
edition = "2021"
[dependencies]
dhat = "0.3.0"

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);
}