Skip to content

Increase Hermes Sampling rate to 10kHz#49795

Closed
hoxyq wants to merge 2 commits into
facebook:mainfrom
hoxyq:export-D70395983
Closed

Increase Hermes Sampling rate to 10kHz#49795
hoxyq wants to merge 2 commits into
facebook:mainfrom
hoxyq:export-D70395983

Conversation

@hoxyq
Copy link
Copy Markdown
Contributor

@hoxyq hoxyq commented Mar 3, 2025

Summary:

Changelog: [Internal]

I've been able to reliably and consistently record samples with an interval between 2 consecutive ones to be ~0.1-0.2ms, lets bump the sampling frequency to have more frames.

On Windows, Hermes Sampler peaks at ~500Hz, so this won't have much effect.

Differential Revision: D70395983

@facebook-github-bot facebook-github-bot added CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. p: Facebook Partner: Facebook Partner labels Mar 3, 2025
@facebook-github-bot
Copy link
Copy Markdown
Contributor

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

@facebook-github-bot
Copy link
Copy Markdown
Contributor

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

@hoxyq hoxyq force-pushed the export-D70395983 branch from 7a1d79d to 51fd70d Compare March 3, 2025 19:23
Summary:
# Changelog: [Internal]

Before, we would store all User Timings and Timeline Events in the PerformanceTracer's buffer, and then add Profile event to it as well.

On larget apps, the amount of events buffered could reach ~100k, which inevitably would cause OOM.

With this approach, we will flush out buffered events from PerformanceTracer first, then do JavaScript Profile serialization, then send it over CDP straight away.

Differential Revision: D70395982
@hoxyq hoxyq force-pushed the export-D70395983 branch from 51fd70d to 5b75459 Compare March 4, 2025 13:43
Summary:
Pull Request resolved: facebook#49795

# Changelog: [Internal]

I've been able to reliably and consistently record samples with an interval between 2 consecutive ones to be ~0.1-0.2ms, lets bump the sampling frequency to have more frames.

On Windows, Hermes Sampler peaks at ~500Hz, so this won't have much effect.

Reviewed By: huntie

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

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

@hoxyq hoxyq force-pushed the export-D70395983 branch from 5b75459 to c0a0acb Compare March 4, 2025 13:47
@facebook-github-bot facebook-github-bot added the Merged This PR has been merged. label Mar 4, 2025
@facebook-github-bot
Copy link
Copy Markdown
Contributor

This pull request has been merged in ed7dbce.

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