Skip to content

Commit 9d67cdb

Browse files
feat(react-native): Add platformProfilers option
1 parent 3e79e47 commit 9d67cdb

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.

0 commit comments

Comments
 (0)