From 39b8ce777fc3af94cfda8fef2b96e88c9292f7e0 Mon Sep 17 00:00:00 2001 From: Aria Shrimpton Date: Sat, 24 Feb 2024 17:08:18 +0000 Subject: use criterion's profile-time flag for profiling --- src/crates/candelabra/src/profiler/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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) { -- cgit v1.2.3