Skip to content

Commit c9c78a3

Browse files
committed
feat: support pass valgrind args
1 parent 5730358 commit c9c78a3

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/executor/valgrind/measure.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,11 @@ pub async fn measure(
156156
}
157157
}
158158
cmd.arg(format!("--log-file={}", log_path.to_str().unwrap()).as_str());
159+
cmd.args(
160+
env::var("VALGRIND_FLAGS")
161+
.unwrap_or_default()
162+
.split_whitespace(),
163+
);
159164

160165
// Set the command to execute:
161166
let script_path = create_run_script()?;

0 commit comments

Comments
 (0)