Title: Sampling binary profiles do not record the profiling mode · Issue #154090 · python/cpython · GitHub
Open Graph Title: Sampling binary profiles do not record the profiling mode · Issue #154090 · python/cpython
X Title: Sampling binary profiles do not record the profiling mode · Issue #154090 · python/cpython
Description: Bug report Bug description: The sampling binary header does not record --mode. Replay and differential flamegraphs therefore cannot describe or validate how the baseline was collected. python -m profiling.sampling run --mode cpu --binary...
Open Graph Description: Bug report Bug description: The sampling binary header does not record --mode. Replay and differential flamegraphs therefore cannot describe or validate how the baseline was collected. python -m pr...
X Description: Bug report Bug description: The sampling binary header does not record --mode. Replay and differential flamegraphs therefore cannot describe or validate how the baseline was collected. python -m pr...
Opengraph URL: https://github.com/python/cpython/issues/154090
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Sampling binary profiles do not record the profiling mode","articleBody":"# Bug report\n\n### Bug description:\n\nThe sampling binary header does not record `--mode`. Replay and differential flamegraphs therefore cannot describe or validate how the baseline was collected.\n\n```bash\npython -m profiling.sampling run --mode cpu --binary -o baseline.bin demo.py\npython -m profiling.sampling replay --flamegraph -o replay.html baseline.bin\npython -m profiling.sampling run --mode wall --diff-flamegraph baseline.bin -o diff.html demo.py\n```\n\nThe replay has no CPU-mode metadata, and the differential run silently compares a CPU baseline with a wall-time profile. These measurements are not comparable.\n\n### CPython versions tested on:\n\n3.16\n\n### Operating systems tested on:\n\nLinux\n\n\u003c!-- gh-linked-prs -->\n### Linked PRs\n* gh-154105\n* gh-158144\n\u003c!-- /gh-linked-prs -->\n","author":{"url":"https://github.com/pablogsal","@type":"Person","name":"pablogsal"},"datePublished":"2026-07-19T10:17:46Z","url":"https://github.com/python/cpython/issues/154090"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:d3fdea92-78ae-f1fa-abec-0787338d9abc |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BA12:23E48:B0A52F:DD55AE:6B023368 |
| html-safe-nonce | 6897165268f355ded8c052d83ef95a91e1bf42d5c6af39a367a576e7b3c91aec |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQTEyOjIzRTQ4OkIwQTUyRjpERDU1QUU6NkIwMjMzNjgiLCJ2aXNpdG9yX2lkIjoiMzQ1MTc3MjAwODIxMDI0ODU1MiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 041c139a2efcc15dbdc836337ae2afd395b0416ed3f27f3870f18e2907ea9eb9 |
| hovercard-subject-tag | issue:4922276839 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/cpython/154090/issue_layout |
| twitter:image | https://opengraph.githubassets.com/59762c6c678505ae64ea041cd6cfffcd5171428a1c58841c27fb297086e5a9be/python/cpython/issues/154090 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/59762c6c678505ae64ea041cd6cfffcd5171428a1c58841c27fb297086e5a9be/python/cpython/issues/154090 |
| og:image:alt | Bug report Bug description: The sampling binary header does not record --mode. Replay and differential flamegraphs therefore cannot describe or validate how the baseline was collected. python -m pr... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | pablogsal |
| hostname | github.com |
| expected-hostname | github.com |
| None | 87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456 |
| turbo-cache-control | no-preview |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 423dbb54c5e7bfecc838eb387c1435eb3d0e760d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width