We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 84358c6 commit 677a5f9Copy full SHA for 677a5f9
1 file changed
crates/divan_compat/divan_fork/src/bench/mod.rs
@@ -657,6 +657,8 @@ impl<'a> BenchContext<'a> {
657
658
let bench_overheads = timer.bench_overheads();
659
660
+ use codspeed::fifo::*;
661
+ let _guard = PerfGuard::new(RUNNER_CTL_FIFO, RUNNER_ACK_FIFO);
662
while {
663
// Conditions for when sampling is over:
664
if elapsed_picos >= max_picos {
@@ -810,6 +812,7 @@ impl<'a> BenchContext<'a> {
810
812
elapsed_picos = elapsed_picos.saturating_add(progress_picos);
811
813
}
814
815
+ core::mem::drop(_guard);
816
817
// Reset flag for ignoring allocations.
818
crate::alloc::IGNORE_ALLOC.set(false);
0 commit comments