Skip to content

Add UI Profiling #169

@sdzhong

Description

@sdzhong

Reference https://docs.sentry.io/platforms/android/profiling/#enabling-manual-lifecycle-ui-profiling

Use

  <!-- Enable UI profiling, adjust in production env. This is evaluated only once per session -->
  <meta-data
    android:name="io.sentry.traces.profiling.session-sample-rate"
    android:value="1.0"
  />
  <meta-data
    android:name="io.sentry.traces.profiling.lifecycle"
    android:value="manual"
  />
  <!-- Enable profiling on app start. The app start profile has to be stopped through Sentry.stopProfiler() -->
  <meta-data
    android:name="io.sentry.traces.profiling.start-on-app-start"
    android:value="true"
  />

to replace

<meta-data
android:name="io.sentry.traces.profiling.enable"
android:value="true" />
<meta-data
android:name="io.sentry.traces.profiling.sample-rate"
android:value="1.0" />

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions