-
-
Notifications
You must be signed in to change notification settings - Fork 468
feat(profiling): Add Android ProfilingManager (Perfetto) support #5251
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weโll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
43jay
wants to merge
15
commits into
main
Choose a base branch
from
claude/dreamy-solomon
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
9a60ad1
feat(profiling): Add useProfilingManager option
43jay 1250aa1
chore(samples): Update sample app to support Perfetto profiling testing
43jay 05d73b1
chore(samples): Improve ProfilingActivity UI for Perfetto testing
43jay 5f894d0
feat(profiling): Skip legacy app-start profiling when useProfilingManโฆ
43jay c2a4442
feat(profiling): Add PerfettoProfiler and wire into AndroidContinuousโฆ
43jay b3c71ce
fix(profiling): Fix meta_length not serialized in Perfetto envelope hโฆ
43jay 8e472c5
fix(profiling): Use AtomicReference for metaLength to preserve nullabโฆ
43jay 3c8e75a
ref(profiling): Extract PerfettoContinuousProfiler from AndroidContinโฆ
43jay 5c6f659
test(profiling): Extract shared profiler test cases into ContinuousPrโฆ
43jay b9dc9a0
test(profiling): Add PerfettoContinuousProfilerTests
43jay a18c69d
ref(profiling): Remove app-start profiling logic from PerfettoContinuโฆ
43jay 917418f
ref(profiling): Improve thread safety in PerfettoContinuousProfiler
43jay adfe505
chore: Run spotlessApply and apiDump
43jay 77940b8
ref(profiling): Move frame metrics collection from PerfettoProfiler tโฆ
43jay 873bad3
ref(profiling): Consolidate measurement collection into ChunkMeasuremโฆ
43jay File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing API level guard for PerfettoContinuousProfiler creation
High Severity
PerfettoContinuousProfileris created whenisUseProfilingManager()is true with no API level check. On API < 35, whenensureProfiler()eventually evaluates the supplier, it loadsPerfettoProfilerwhich referencesProfilingManager(API 35+), causing aNoClassDefFoundErrorcrash. The PR description states profiling is "disabled" on API < 35 but no code enforces this.Reviewed by Cursor Bugbot for commit 873bad3. Configure here.