Skip to content

Commit ee2dd35

Browse files
committed
Log duration of the benchmark part of a single benchmark
1 parent 70e986d commit ee2dd35

File tree

1 file changed

+6
-0
lines changed
  • collector/src/compile/benchmark

1 file changed

+6
-0
lines changed

collector/src/compile/benchmark/mod.rs

+6
Original file line numberDiff line numberDiff line change
@@ -330,6 +330,7 @@ impl Benchmark {
330330
preparation_start.elapsed().as_secs()
331331
);
332332

333+
let benchmark_start = std::time::Instant::now();
333334
for &backend in backends {
334335
for (profile, prep_dir) in &profile_dirs {
335336
let profile = *profile;
@@ -414,6 +415,11 @@ impl Benchmark {
414415
}
415416
}
416417
}
418+
log::trace!(
419+
"benchmarking {} took {} seconds",
420+
self.name,
421+
benchmark_start.elapsed().as_secs()
422+
);
417423

418424
Ok(())
419425
}

0 commit comments

Comments
 (0)