Skip to content

Commit 789cd5d

Browse files
committed
Rename example to heap_profiling
1 parent b7cdcb2 commit 789cd5d

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

packages/vm/Cargo.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ staking = ["cosmwasm-std/staking"]
2020
stargate = ["cosmwasm-std/stargate"]
2121
# Use cranelift backend instead of singlepass. This is required for development on Windows.
2222
cranelift = ["wasmer/cranelift"]
23-
# For heap profiling. Only used in "memory" example.
23+
# For heap profiling. Only used in the "heap_profiling" example.
2424
dhat-heap = ["dep:dhat"]
2525

2626
[lib]
@@ -45,7 +45,7 @@ thiserror = "1.0.26"
4545
wasmer = { version = "=4.2.5", default-features = false, features = ["cranelift", "singlepass"] }
4646
wasmer-middlewares = "=4.2.5"
4747
strum = { version = "0.25.0", default-features = false, features = ["derive"] }
48-
# For heap profiling. Only used in "memory" example. This has to be a non-dev dependency
48+
# For heap profiling. Only used in the "heap_profiling" example. This has to be a non-dev dependency
4949
# because cargo currently does not support optional dev-dependencies.
5050
dhat = { version = "0.3.2", optional = true }
5151

@@ -77,8 +77,8 @@ name = "main"
7777
harness = false
7878

7979
[[example]]
80-
name = "memory"
81-
path = "examples/memory.rs"
80+
name = "heap_profiling"
81+
path = "examples/heap_profiling.rs"
8282

8383
[profile.release]
8484
debug = 1

packages/vm/examples/memory.rs renamed to packages/vm/examples/heap_profiling.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// Run with
2-
// cargo run --features dhat-heap --example memory --release
2+
// cargo run --features dhat-heap --example heap_profiling --release
33

44
use std::time::SystemTime;
55
use tempfile::TempDir;

0 commit comments

Comments
 (0)