We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cdfb56a commit 2f7471dCopy full SHA for 2f7471d
1 file changed
src/run/runner/wall_time/perf/mod.rs
@@ -90,6 +90,13 @@ impl PerfRunner {
90
bench_cmd: &str,
91
config: &Config,
92
) -> anyhow::Result<ExitStatus> {
93
+ // Clean up any existing perf data file from previous runs
94
+ if Path::new(PERF_DATA_PATH).exists() {
95
+ std::fs::remove_file(PERF_DATA_PATH).with_context(|| {
96
+ format!("Failed to remove existing perf data file at {PERF_DATA_PATH}",)
97
+ })?;
98
+ }
99
+
100
let perf_fifo = PerfFifo::new()?;
101
let runner_fifo = RunnerFifo::new()?;
102
0 commit comments