Document that app start profiling is legacy-profiler only - #262
Open
sdzhong wants to merge 1 commit into
Open
Conversation
On Android 15 (API level 35) and higher the SDK uses the platform ProfilingManager (Perfetto) backend, where startProfilerOnAppStart has no effect. The meta-data stays enabled since minSdkVersion is 21 and it still applies below API 35, but reading the manifest gave no hint that it is inert on newer devices. Ref: https://docs.sentry.io/platforms/android/profiling/#limitations Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #262 +/- ##
=====================================
Coverage 0.00% 0.00%
=====================================
Files 16 16
Lines 883 883
Branches 67 67
=====================================
Misses 883 883 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
While pinning the empower TDA Android emulator to Android 15 (
sentry-demos/empower), I hit the profiling limitations for API level 35+:This manifest sets
io.sentry.traces.profiling.start-on-app-starttotrue, which reads as "app start profiling is on" — but on API 35+ it does nothing. Anyone demoing on a modern device and not seeing an app start profile has no way to tell that from the manifest.What
Comment only — no behavior change. The meta-data stays enabled:
minSdkVersionis 21, so the app still runs on plenty of devices below API 35 where the legacy profiler honors it. Removing it would have silently dropped app start profiling on exactly those devices.Related
setup_profiling_device.sh(#253) already covers the other API 35+ limitation — the framework rate limiter. This documents the remaining one in the place people actually read.🤖 Generated with Claude Code