Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/run/runner/valgrind/measure.rs
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ pub async fn measure(
cmd.current_dir(abs_cwd);
}
// Configure valgrind
let valgrind_flags = env::var("VALGRIND_FLAGS").unwrap_or_default();
let profile_path = profile_folder.join("%p.out");
let log_path = profile_folder.join("valgrind.log");
cmd.arg("valgrind")
Expand All @@ -114,7 +115,8 @@ pub async fn measure(
.map(|x| format!("--obj-skip={}", x)),
)
.arg(format!("--callgrind-out-file={}", profile_path.to_str().unwrap()).as_str())
.arg(format!("--log-file={}", log_path.to_str().unwrap()).as_str());
.arg(format!("--log-file={}", log_path.to_str().unwrap()).as_str())
.args(valgrind_flags.split_whitespace());

// Set the command to execute:
let script_path = create_run_script()?;
Expand Down