Repository navigation
feat(walltime): add --walltime-sampling-rate option - #637
not-matthias wants to merge 1 commit into
Conversation
Perf and samply sampled at a hardcoded 997 Hz, so short functions get too few samples to read their share or change. Expose the rate as --walltime-sampling-rate / CODSPEED_WALLTIME_SAMPLING_RATE on run and exec, defaulting to 997 Hz, and forward it to both profilers.
Merging this PR will not alter performance2 warnings
Comparing Footnotes
|
[Medium impact] The change affects walltime profiles created by `run` and `exec`. The PR appears safe to merge, with a non-blocking request for tests of the new option.
|
TLDR: The walltime profilers sample at a fixed 997 Hz. Short functions get too few samples to judge their share or change. This adds
--walltime-sampling-rateso a run can sample more often.--walltime-sampling-rate <HZ>/CODSPEED_WALLTIME_SAMPLING_RATEonrunandexec, forwarded to both walltime profiler backends.0is rejected.Example