aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJohannes Stoelp <johannes.stoelp@gmail.com>2024-02-28 19:04:26 +0100
committerJohannes Stoelp <johannes.stoelp@gmail.com>2024-02-28 19:22:15 +0100
commit6f45135b0d7a2f182593d05574da81565538fa33 (patch)
tree428d2b9dd462a9550f7c877c2eb58b64247f6514
parent1e1a5df862d8f0739a2c72197fa1620987945f3a (diff)
downloadjuicebox-asm-6f45135b0d7a2f182593d05574da81565538fa33.tar.gz
juicebox-asm-6f45135b0d7a2f182593d05574da81565538fa33.zip
tiny_vm: add commented out rt with profiling + symbols in release build
-rw-r--r--Cargo.toml4
-rw-r--r--examples/tiny_vm.rs2
2 files changed, 6 insertions, 0 deletions
diff --git a/Cargo.toml b/Cargo.toml
index 7bbbcfc..20941b6 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -5,3 +5,7 @@ edition = "2021"
[dependencies]
nix = "0.26.2"
+
+# When profiling one wants debug symbols for release builds.
+#[profile.release]
+#debug = 1
diff --git a/examples/tiny_vm.rs b/examples/tiny_vm.rs
index d203bde..b441a4a 100644
--- a/examples/tiny_vm.rs
+++ b/examples/tiny_vm.rs
@@ -144,6 +144,8 @@ impl TinyVm {
// -- JIT state.
jit_cache,
rt: Runtime::new(),
+ // Confifigure the runtime to generates perf meta data.
+ //rt: Runtime::with_profile(),
}
}