Fixed
Status Update
Comments
ap...@google.com <ap...@google.com> #2
Project: platform/frameworks/support
Branch: androidx-main
commit 5d7c04100e92a4bebc413d726c2626865b3233c5
Author: Chris Craik <ccraik@google.com>
Date: Mon Oct 10 11:03:26 2022
Support for generating baseline profiles without root (API33+)
Fixes:250083467
Fixes:253094958
Test: BaselineProfileRuleTest # on raven running T / API 33, user build
Test: ./gradlew benchmark:b-m:cC
Relnote: """
// BENCHMARK RELEASE NOTES
BaselineProfileRule no longer requires root on Android 13 (API 33),
and is no longer experimental.
This change also fixes how profiles from an app are flushed to disk on
unrooted devices, but requires updating the target app's
profileinstaller dependency.
To use `BaselineProfileRule` and `CompilationMode.Partial()` on an
unrooted device, you must also update your target app to use
`androidx.profileinstaller.profileinstaller:1.3.0-alpha01`. This
enables flushing the profile to disk correctly, so that it can be
compiled/extracted.
// PROFILE INSTALLER RELEASE NOTES
Adds a new shell broadcast that enables Macrobenchmark to fully flush
in-memory profile data to disk, to be included in baseline profile
generation. This is required to use the macrobenchmark library to
capture baseline profiles with `BaselineProfileRule`, and evaluate
profile performance using `CompilationMode.Partial()`.
"""
Change-Id: Ie0a7d13cbe34476113bad955e47ed771d84e65a4
M benchmark/benchmark-common/src/main/java/androidx/benchmark/Shell.kt
M benchmark/benchmark-macro-junit4/api/current.txt
M benchmark/benchmark-macro-junit4/api/public_plus_experimental_current.txt
M benchmark/benchmark-macro-junit4/api/restricted_current.txt
M benchmark/benchmark-macro-junit4/src/main/java/androidx/benchmark/macro/junit4/BaselineProfileRule.kt
M benchmark/benchmark-macro/api/public_plus_experimental_current.txt
M benchmark/benchmark-macro/src/main/java/androidx/benchmark/macro/BaselineProfiles.kt
M benchmark/benchmark-macro/src/main/java/androidx/benchmark/macro/CompilationMode.kt
D benchmark/benchmark-macro/src/main/java/androidx/benchmark/macro/ExperimentalBaselineProfilesApi.kt
A benchmark/benchmark-macro/src/main/java/androidx/benchmark/macro/ProfileInstallBroadcast.kt
M benchmark/integration-tests/macrobenchmark/src/androidTest/java/androidx/benchmark/integration/macrobenchmark/BaselineProfileRuleTest.kt
M benchmark/integration-tests/macrobenchmark/src/androidTest/java/androidx/benchmark/integration/macrobenchmark/GithubBrowserBaselineProfile.kt
M benchmark/integration-tests/macrobenchmark/src/androidTest/java/androidx/benchmark/integration/macrobenchmark/SystemUiBenchmark.kt
M benchmark/integration-tests/macrobenchmark/src/androidTest/java/androidx/benchmark/integration/macrobenchmark/TrivialListScrollBaselineProfile.kt
M benchmark/integration-tests/macrobenchmark/src/androidTest/java/androidx/benchmark/integration/macrobenchmark/TrivialStartupBaselineProfile.kt
M compose/integration-tests/macrobenchmark/src/androidTest/java/androidx/compose/integration/macrobenchmark/SmallListBaselineProfile.kt
M profileinstaller/profileinstaller/api/current.txt
M profileinstaller/profileinstaller/api/public_plus_experimental_current.txt
M profileinstaller/profileinstaller/api/restricted_current.txt
M profileinstaller/profileinstaller/src/main/AndroidManifest.xml
M profileinstaller/profileinstaller/src/main/java/androidx/profileinstaller/ProfileInstallReceiver.java
M profileinstaller/profileinstaller/src/main/java/androidx/profileinstaller/ProfileInstaller.java
M wear/compose/integration-tests/macrobenchmark/src/androidTest/java/androidx/wear/compose/integration/macrobenchmark/BaselineProfile.kt
https://android-review.googlesource.com/2250190
Branch: androidx-main
commit 5d7c04100e92a4bebc413d726c2626865b3233c5
Author: Chris Craik <ccraik@google.com>
Date: Mon Oct 10 11:03:26 2022
Support for generating baseline profiles without root (API33+)
Fixes:250083467
Fixes:253094958
Test: BaselineProfileRuleTest # on raven running T / API 33, user build
Test: ./gradlew benchmark:b-m:cC
Relnote: """
// BENCHMARK RELEASE NOTES
BaselineProfileRule no longer requires root on Android 13 (API 33),
and is no longer experimental.
This change also fixes how profiles from an app are flushed to disk on
unrooted devices, but requires updating the target app's
profileinstaller dependency.
To use `BaselineProfileRule` and `CompilationMode.Partial()` on an
unrooted device, you must also update your target app to use
`androidx.profileinstaller.profileinstaller:1.3.0-alpha01`. This
enables flushing the profile to disk correctly, so that it can be
compiled/extracted.
// PROFILE INSTALLER RELEASE NOTES
Adds a new shell broadcast that enables Macrobenchmark to fully flush
in-memory profile data to disk, to be included in baseline profile
generation. This is required to use the macrobenchmark library to
capture baseline profiles with `BaselineProfileRule`, and evaluate
profile performance using `CompilationMode.Partial()`.
"""
Change-Id: Ie0a7d13cbe34476113bad955e47ed771d84e65a4
M benchmark/benchmark-common/src/main/java/androidx/benchmark/Shell.kt
M benchmark/benchmark-macro-junit4/api/current.txt
M benchmark/benchmark-macro-junit4/api/public_plus_experimental_current.txt
M benchmark/benchmark-macro-junit4/api/restricted_current.txt
M benchmark/benchmark-macro-junit4/src/main/java/androidx/benchmark/macro/junit4/BaselineProfileRule.kt
M benchmark/benchmark-macro/api/public_plus_experimental_current.txt
M benchmark/benchmark-macro/src/main/java/androidx/benchmark/macro/BaselineProfiles.kt
M benchmark/benchmark-macro/src/main/java/androidx/benchmark/macro/CompilationMode.kt
D benchmark/benchmark-macro/src/main/java/androidx/benchmark/macro/ExperimentalBaselineProfilesApi.kt
A benchmark/benchmark-macro/src/main/java/androidx/benchmark/macro/ProfileInstallBroadcast.kt
M benchmark/integration-tests/macrobenchmark/src/androidTest/java/androidx/benchmark/integration/macrobenchmark/BaselineProfileRuleTest.kt
M benchmark/integration-tests/macrobenchmark/src/androidTest/java/androidx/benchmark/integration/macrobenchmark/GithubBrowserBaselineProfile.kt
M benchmark/integration-tests/macrobenchmark/src/androidTest/java/androidx/benchmark/integration/macrobenchmark/SystemUiBenchmark.kt
M benchmark/integration-tests/macrobenchmark/src/androidTest/java/androidx/benchmark/integration/macrobenchmark/TrivialListScrollBaselineProfile.kt
M benchmark/integration-tests/macrobenchmark/src/androidTest/java/androidx/benchmark/integration/macrobenchmark/TrivialStartupBaselineProfile.kt
M compose/integration-tests/macrobenchmark/src/androidTest/java/androidx/compose/integration/macrobenchmark/SmallListBaselineProfile.kt
M profileinstaller/profileinstaller/api/current.txt
M profileinstaller/profileinstaller/api/public_plus_experimental_current.txt
M profileinstaller/profileinstaller/api/restricted_current.txt
M profileinstaller/profileinstaller/src/main/AndroidManifest.xml
M profileinstaller/profileinstaller/src/main/java/androidx/profileinstaller/ProfileInstallReceiver.java
M profileinstaller/profileinstaller/src/main/java/androidx/profileinstaller/ProfileInstaller.java
M wear/compose/integration-tests/macrobenchmark/src/androidTest/java/androidx/wear/compose/integration/macrobenchmark/BaselineProfile.kt
na...@google.com <na...@google.com> #3
The following release(s) address this bug:
androidx.benchmark:benchmark-common:1.2.0-alpha06
androidx.benchmark:benchmark-macro:1.2.0-alpha06
androidx.benchmark:benchmark-macro-junit4:1.2.0-alpha06
androidx.profileinstaller:profileinstaller:1.3.0-alpha01
Description
No description yet.