diff --git a/docs/platforms/react-native/profiling/index.mdx b/docs/platforms/react-native/profiling/index.mdx index 8ef5b3f30e7599..9e3a9029f4f6c6 100644 --- a/docs/platforms/react-native/profiling/index.mdx +++ b/docs/platforms/react-native/profiling/index.mdx @@ -41,3 +41,21 @@ Sentry.init({ }, }); ``` + +### Options + +To change the React Native profiling options add the `hermesProfilingIntegration` to the integrations in `Sentry.init`. + +```javascript +Sentry.init({ + integrations: [ + Sentry.hermesProfilingIntegration({ + platformProfilers: false, + }), + ], +}); +``` + +#### platformProfilers + +Default value `true`, platform profilers are enabled. By default both React Native JS code executed in Hermes engine and platform specific code (Swift, Objective-C, Kotlin, Java) are profiled by their respective profilers. Setting `platformProfilers` to `false` will disable profiling of the platform specific code and only the JS code executed in Hermes will be profiled. This option is available since the SDK version [5.33.0](https://github.com/getsentry/sentry-react-native/releases/tag/5.33.0).