FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

gh-151292: Change `total_samples:u32` in the binary format to `total_samples:u64` by maurycy · Pull Request #153425 · python/cpython · GitHub

Repository navigation

gh-151292: Change total_samples:u32 in the binary format to total_samples:u64 - #153425

Merged
pablogsal merged 2 commits into
python:mainfrom
maurycy:tachyon-total-samples-u64
Jul 9, 2026
Merged

pablogsal merged 2 commits into
python:mainfrom
maurycy:tachyon-total-samples-u64

Conversation

maurycy commented Jul 9, 2026 •
edited
Loading

Copy link
Copy Markdown
Contributor

The PR bumps total_samples:u32 from the binary format to total_samples:u64. The reason for doing so is that, as per #151292, u32 under 10khz is sufficient only for:

Threads overflow after...
1 ~11.9 h
4 ~3.0 h
10 ~71 min
64 ~11 min

That might look a bit excessive but with continous profiling of production systems it's totally possible to see 1Khz and a couple of threads, a couple of days.

This change breaks backwards compatibility, but - as per discussion offline - we're before rc1 so it should be OK, and NOW is the best time to do such change.

Copy link
Copy Markdown
Member

Great work!

pablogsal enabled auto-merge (squash) July 9, 2026 13:44
pablogsal added the needs backport to 3.15 bugs and security fixes label Jul 9, 2026
pablogsal merged commit 1d19650 into python:main Jul 9, 2026
60 checks passed

Copy link
Copy Markdown

Thanks @maurycy for the PR, and @pablogsal for merging it 🌮🎉.. I'm working now to backport this PR to: 3.15.
🐍🍒⛏🤖

bedevere-app Bot commented Jul 9, 2026

Copy link
Copy Markdown

GH-153436 is a backport of this pull request to the 3.15 branch.

bedevere-app Bot removed the needs backport to 3.15 bugs and security fixes label Jul 9, 2026
maurycy deleted the tachyon-total-samples-u64 branch July 9, 2026 14:00
pablogsal pushed a commit that referenced this pull request Jul 11, 2026
…`total_samples:u64` (GH-153425) (#153436)

gh-151292: Change `total_samples:u32` in the binary format to `total_samples:u64` (GH-153425)
(cherry picked from commit 1d19650)

Co-authored-by: Maurycy Pawłowski-Wieroński <maurycy@maurycy.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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.

2 participants


Back | FazBrowse Home | New Git URL