Skip to content

Allow mocking HighResTimeStamp in debug builds#53020

Closed
rubennorte wants to merge 2 commits into
facebook:mainfrom
rubennorte:export-D79554725
Closed

Allow mocking HighResTimeStamp in debug builds#53020
rubennorte wants to merge 2 commits into
facebook:mainfrom
rubennorte:export-D79554725

Conversation

@rubennorte
Copy link
Copy Markdown
Contributor

Summary:
Changelog: [internal]

This adds a new feature to HighResTimeStamp to set a custom timestamp provider for "now" that can be useful for testing, only in debug builds to avoid potentially regressing performance.

Differential Revision: D79554725

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Aug 4, 2025
@facebook-github-bot
Copy link
Copy Markdown
Contributor

This pull request was exported from Phabricator. Differential Revision: D79554725

@facebook-github-bot
Copy link
Copy Markdown
Contributor

This pull request was exported from Phabricator. Differential Revision: D79554725

1 similar comment
@facebook-github-bot
Copy link
Copy Markdown
Contributor

This pull request was exported from Phabricator. Differential Revision: D79554725

@rubennorte rubennorte force-pushed the export-D79554725 branch 2 times, most recently from 824ec21 to adefb25 Compare August 4, 2025 16:31
Summary:

Changelog: [internal]

Moving the logic to set the default value for `HighResTimeStamp` to a shared function, to simplify further changes.

Reviewed By: rshest

Differential Revision: D79554726
Summary:

Changelog: [internal]

This adds a new feature to `HighResTimeStamp` to set a custom timestamp provider for "now" that can be useful for testing, only in debug builds to avoid potentially regressing performance.

Reviewed By: hoxyq, rshest

Differential Revision: D79554725
@facebook-github-bot
Copy link
Copy Markdown
Contributor

This pull request was exported from Phabricator. Differential Revision: D79554725

@facebook-github-bot facebook-github-bot added the Merged This PR has been merged. label Aug 4, 2025
@facebook-github-bot
Copy link
Copy Markdown
Contributor

This pull request has been merged in f1cf489.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported Merged This PR has been merged. p: Facebook Partner: Facebook Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants