aboutsummaryrefslogtreecommitdiff
path: root/src/crates
diff options
context:
space:
mode:
authorAria Shrimpton <me@aria.rip>2024-02-24 17:08:18 +0000
committerAria Shrimpton <me@aria.rip>2024-02-24 17:08:18 +0000
commit39b8ce777fc3af94cfda8fef2b96e88c9292f7e0 (patch)
tree99cb8e13303e35f307e45c71322ef85eb3cc3c5d /src/crates
parentba31900cd8cf3f42b4bff28ca8f18849756158c9 (diff)
use criterion's profile-time flag for profiling
Diffstat (limited to 'src/crates')
-rw-r--r--src/crates/candelabra/src/profiler/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/crates/candelabra/src/profiler/mod.rs b/src/crates/candelabra/src/profiler/mod.rs
index 8cd163e..fa87f50 100644
--- a/src/crates/candelabra/src/profiler/mod.rs
+++ b/src/crates/candelabra/src/profiler/mod.rs
@@ -169,7 +169,7 @@ impl State {
let child = Command::new("cargo")
.current_dir(&project.source_dir)
- .args(["bench", "--bench", name])
+ .args(["bench", "--bench", name, "--", "--profile-time", "5"])
.env("PROFILER_OUT_DIR", profiler_out_dir.as_ref()) // Where profiler info gets outputted
.stdout(Stdio::piped())
.stderr(if log_enabled!(Level::Debug) {