Increase Hermes Sampling rate to 10kHz (#49795)

Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/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

fbshipit-source-id: 9a9e619d75096a3ee75e0e1a2f8b8fff33130268
This commit is contained in:
Ruslan Lesiutin
2025-03-04 08:10:41 -08:00
committed by Facebook GitHub Bot
parent df4433c40e
commit ed7dbce799
@@ -31,7 +31,7 @@ namespace facebook::react::jsinspector_modern {
#ifdef HERMES_ENABLE_DEBUGGER
namespace {
const uint16_t HERMES_SAMPLING_FREQUENCY_HZ = 1000;
const uint16_t HERMES_SAMPLING_FREQUENCY_HZ = 10000;
} // namespace