Skip to content

Commit 96ad3dd

Browse files
committed
fixup! refactor(walltime): port PerfRunner to Profiler trait
1 parent 0fdb0de commit 96ad3dd

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/executor/wall_time/profiler/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ pub trait Profiler {
7373
/// Post-run: harvest any side artifacts (perf maps, jit dumps, module
7474
/// info) and write the unified profile metadata into `profile_folder`.
7575
async fn finalize(
76-
&mut self,
76+
&self,
7777
fifo_data: FifoBenchmarkData,
7878
timestamps: ExecutionTimestamps,
7979
profile_folder: &Path,

src/executor/wall_time/profiler/perf/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ impl Profiler for PerfProfiler {
200200
}
201201

202202
async fn finalize(
203-
&mut self,
203+
&self,
204204
fifo_data: FifoBenchmarkData,
205205
timestamps: ExecutionTimestamps,
206206
profile_folder: &Path,

src/executor/wall_time/profiler/samply/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ impl Profiler for SamplyProfiler {
7575
}
7676

7777
async fn finalize(
78-
&mut self,
78+
&self,
7979
fifo_data: FifoBenchmarkData,
8080
timestamps: ExecutionTimestamps,
8181
profile_folder: &Path,

0 commit comments

Comments
 (0)