Skip to content

Set Mach absolute time platform-specific reference timestamp on macOS#810

Merged
mstange merged 1 commit into
mstange:mainfrom
CodSpeedHQ:mach-absolute-time
May 10, 2026
Merged

Set Mach absolute time platform-specific reference timestamp on macOS#810
mstange merged 1 commit into
mstange:mainfrom
CodSpeedHQ:mach-absolute-time

Conversation

@not-matthias

Copy link
Copy Markdown
Contributor

I ran into an issue on MacOS, when trying to reconstruct the monotonic timer value of a specific sample (since the reference timestamp was discarded before). My use case is extracting specific samples based on a monotonic time range.

By saving it inside the profile.json, we can reconstruct it again by adding the reference timestamp.

@mstange mstange left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh I'm surprised we weren't doing this already. Thanks!

For some reason this PR doesn't have an "Update branch" button so I can't merge it until you push a rebased / merged version. Maybe you didn't have the "allow edits by maintainer" checkbox checked?

@mstange mstange enabled auto-merge May 10, 2026 15:07
@mstange mstange merged commit 5a85730 into mstange:main May 10, 2026
15 checks passed
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