Uh oh!
There was an error while loading. Please reload this page.
gh-154090: Store profiling mode in binary files - #154105
Conversation
pablogsal
commented
Jul 19, 2026
CC: @lkollar |
There was a problem hiding this comment.
What about threads (ie: main v. --all-threads; now implicit from HDR_OFF_THREADS), native_frames, gc for diffs?
Truth be told, I wonder about the all flags (especially if we strictly care about honest diffs and replays), about describing the target (especially for Gecko), but also about error rate, maybe even failed samples (ref #154092).
That's a bit of a Whac-A-Mole without approaching this is in a bit more generic way (eg: flexible metadata struct within the existing header.)
| | 44 | 8 | uint64 | Frame table offset | | ||
| | 52 | 4 | uint32 | Compression type (0=none, 1=zstd) | | ||
| | 56 | 8 | bytes | Reserved (zero-filled) | | ||
| | 28 | 8 | uint64 | Total sample count | |
| Profiling modes use their `_remote_debugging.PROFILING_MODE_*` value plus one, | ||
| leaving zero available for binaries written before this field was defined. |
There was a problem hiding this comment.
Do we care about backwards compatibility that much, given that we have recently changed the total sample count from uint32 to uint64 lately (#153425)?
Closes#154090.