Skip to content

Commit c50ed9d

Browse files
committed
feat: support pass valgrind args
1 parent 6e55caf commit c50ed9d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/executor/valgrind/measure.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,11 @@ pub async fn measure(
141141
}
142142
}
143143
cmd.arg(format!("--log-file={}", log_path.to_str().unwrap()).as_str());
144+
cmd.args(
145+
std::env::var("VALGRIND_FLAGS")
146+
.unwrap_or_default()
147+
.split_whitespace(),
148+
);
144149

145150
// Set the command to execute:
146151
let script_path = create_run_script()?;

0 commit comments

Comments
 (0)