complete version
This commit is contained in:
7
string-dhat/Cargo.lock
generated
Normal file
7
string-dhat/Cargo.lock
generated
Normal 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
7
string-dhat/Cargo.toml
Normal 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
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