Migrate snippet: more performance - #1097
Open
pengzhi-cb wants to merge 7 commits into
Open
pengzhi-cb wants to merge 7 commits into
pengzhi-cb wants to merge 7 commits into
Conversation
…ch Time) snippets
…nitialization crashes - Upgrade androidx-benchmark to 1.4.1 and androidx-uiautomator to 2.4.0. - Relocate benchmarking tests from production source (src/main) to the test source set (src/androidTest). - Fix startup crash by making `SplitInitializer` a static inner class in `ActivityEmbeddingJavaSnippets.java`. - Update `AndroidManifest.xml` to correctly reference nested initializer classes using the `$` separator. - Adopt the new UI Automator 2.4.0 in `BaselineProfilesOverview.kt`.
- Consolidate and clean up testing dependencies in `misc/build.gradle.kts`. - Reorganize UI Automator library declaration in `libs.versions.toml` for better consistency.
- Remove static modifier from ActivityEmbeddingJavaSnippets.SplitInitializer - Fix AndroidManifest App Startup meta-data inner class reference paths - Update androidx-metrics to 1.0.0
pengzhi-cb
force-pushed
the
katherinekuan/performance-snippets
branch
from
September 15, 2026 20:28
d5d4716 to
78e4622
Compare
Contributor
|
Is it possible to remove the new snippets from the misc folder? (We don't want to add any new snippets to that module). Can they go into the performance module, or do they need to go in the performance-samples repo? |
Contributor
Author
Oops, I did move them but the commit was lost when I move things into |
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.
This PR aims to add the following hard-coded snippets from DAC to repo:
(1 snippet) https://developer.android.com/topic/performance/baselineprofiles/measure-baselineprofile
(1 snippet) https://developer.android.com/topic/performance/baselineprofiles/overview
(1 snippet) https://developer.android.com/topic/performance/benchmarking/macrobenchmark-overview
(1 snippet) https://developer.android.com/topic/performance/jankstats
(1 snippet) https://developer.android.com/topic/performance/startupprofiles/dex-layout-optimizations
(1 snippet) https://developer.android.com/topic/performance/vitals/launch-time
Summary:
androidx-benchmarkto 1.4.1 andandroidx-uiautomatorto 2.4.0MeasureBaselineProfile.ktandBaselineProfilesOverview.ktto use the official UI Automator 2.4.0 DSL, removed mock helper classes.