Skip to content

fix: exclude paused sections from instrumentation measurement#44

Draft
not-matthias wants to merge 3 commits intomainfrom
cod-2033-codspeed-cpp-includes-setupteardown-in-instrumentation-mode
Draft

fix: exclude paused sections from instrumentation measurement#44
not-matthias wants to merge 3 commits intomainfrom
cod-2033-codspeed-cpp-includes-setupteardown-in-instrumentation-mode

Conversation

@not-matthias
Copy link
Member

PauseTiming/ResumeTiming now stop/start Callgrind instrumentation in
CODSPEED_ANALYSIS mode, ensuring setup/teardown code is not included
in benchmark measurements.

PauseTiming/ResumeTiming now stop/start Callgrind instrumentation in
CODSPEED_ANALYSIS mode, ensuring setup/teardown code is not included
in benchmark measurements.
@codspeed-hq
Copy link

codspeed-hq bot commented Mar 13, 2026

Unable to generate the performance report

The benchmarks did not report any results. Please check the documentation to check your benchmarking setup.

measurement_start()/measurement_stop() write markers and manage benchmark
lifecycle — calling them on every pause/resume corrupts the marker structure
and causes "No results found" errors.

Instead, add measurement_pause()/measurement_resume() that only toggle
CALLGRIND_STOP/START_INSTRUMENTATION without touching markers or stats.
@avalanche-staging
Copy link

avalanche-staging bot commented Mar 16, 2026

Congrats! CodSpeed is installed 🎉

🆕 468 new benchmarks were detected.

You will start to see performance impacts in the reports once the benchmarks are run from your default branch.

Detected benchmarks


ℹ️ Only the first 20 benchmarks are displayed. Go to the app to view all benchmarks.


Open in CodSpeed

@not-matthias not-matthias force-pushed the cod-2033-codspeed-cpp-includes-setupteardown-in-instrumentation-mode branch from 5b52b9e to 646ed4c Compare March 16, 2026 18:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant