Skip to content

Commit 32edc7e

Browse files
feat(react-native): Add platformProfilers option (#11496)
1 parent b32915b commit 32edc7e

File tree

1 file changed

+18
-0
lines changed
  • docs/platforms/react-native/profiling

1 file changed

+18
-0
lines changed

docs/platforms/react-native/profiling/index.mdx

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,21 @@ Sentry.init({
4141
},
4242
});
4343
```
44+
45+
### Options
46+
47+
To change the React Native profiling options add the `hermesProfilingIntegration` to the integrations in `Sentry.init`.
48+
49+
```javascript
50+
Sentry.init({
51+
integrations: [
52+
Sentry.hermesProfilingIntegration({
53+
platformProfilers: false,
54+
}),
55+
],
56+
});
57+
```
58+
59+
#### platformProfilers
60+
61+
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).

0 commit comments

Comments
 (0)