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