Skip to content

Add option to hermesProfilingIntegration to only profile Hermes JS #4085

@krystofwoldrich

Description

@krystofwoldrich

Description

When profilesSampleRate set in Sentry.init of the React Native SDK both Hermes JS and Android JVM or iOS native profiler are recording.

This issue is proposing an option to only enable Hermes JS profiling if user doesn't want to profile the native threads.

Sentry.init({
  profilesSampleRate: 1.0,
  integration: [
    Sentry.hermesProfilingIntegration({
      platformProfilers: false
    }),
  ],
})

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions