Skip to content

Commit 80f06b3

Browse files
committed
fixup: teardown crashes when perf not run
1 parent 4615309 commit 80f06b3

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/run/runner/wall_time/executor.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,13 +88,13 @@ impl Executor for WallTimeExecutor {
8888

8989
async fn teardown(
9090
&self,
91-
_config: &Config,
91+
config: &Config,
9292
_system_info: &SystemInfo,
9393
run_data: &RunData,
9494
) -> Result<()> {
9595
debug!("Copying files to the profile folder");
9696

97-
if let Some(perf) = &self.perf {
97+
if let (Some(perf), true) = (&self.perf, config.enable_perf) {
9898
perf.save_files_to(&run_data.profile_folder).await?;
9999
}
100100

0 commit comments

Comments
 (0)