Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions docs/platforms/react-native/profiling/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Loading