You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ref: exclude benchmark harness from measurement via collection steady-state
Toggle callgrind collection off once at process start and make the
PauseTiming()/ResumeTiming() toggles unconditional. Collection is now
only enabled inside the benchmark loop, so State setup, timer reads and
instrument-hooks zero/dump requests no longer appear in the measurement,
and the codspeed_in_benchmark_loop_ gating flag is no longer needed.
The toggle is inlined via CALLGRIND_TOGGLE_COLLECT directly (instead of
calling the instrument-hooks wrapper) so no toggle frame shows up in
flamegraphs; the counted boundary shrinks to the ResumeTiming() epilogue
(~6 instructions). SkipWithMessage/SkipWithError restore the toggle
parity when a benchmark is skipped mid-loop without pausing.
Refs COD-2033
0 commit comments