Fixed
Status Update
Comments
ma...@google.com <ma...@google.com>
ap...@google.com <ap...@google.com> #2
Project: platform/frameworks/support
Branch: androidx-main
commit a25c7ad45538dca8ebe65bb170ff04605efb8af9
Author: Marcello Albano <maralb@google.com>
Date: Wed Jul 06 15:47:18 2022
Added parameter to `BaselineProfileRule#collectBaselineProfile` to filter output file by package names
Bug: 220146561
Test: ./gradlew :benchmark:integration-tests:macrobenchmark:cC -Pandroid.testInstrumentationRunnerArguments.class=androidx.benchmark.integration.macrobenchmark.BaselineProfileFilterTest
This change adds a new parameter to `BaselineProfileRule#collectBaselineProfile` in order to allow filtering for baseline profile output file and keep only the desired packages. This is useful when creating a baseline profile for a library. Note that, in order to work, the code cannot be obfuscated.
Change-Id: If7338bff7f7a1bde4daeff1af1f684985103012d
Relnote: Added a new parameter to `BaselineProfileRule#collectBaselineProfile` to filter output file by package names
M benchmark/benchmark-macro-junit4/src/main/java/androidx/benchmark/macro/junit4/BaselineProfileRule.kt
M benchmark/integration-tests/macrobenchmark/build.gradle
A benchmark/integration-tests/macrobenchmark/src/androidTest/java/androidx/benchmark/integration/macrobenchmark/BaselineProfileFilterTest.kt
M benchmark/integration-tests/macrobenchmark-target/src/main/AndroidManifest.xml
A benchmark/integration-tests/macrobenchmark-target/src/main/java/androidx/benchmark/integration/macrobenchmark/target/EmptyActivity.kt
M benchmark/benchmark-macro/src/main/java/androidx/benchmark/macro/BaselineProfiles.kt
M benchmark/benchmark-macro-junit4/api/public_plus_experimental_current.txt
M benchmark/benchmark-macro/api/restricted_current.txt
https://android-review.googlesource.com/2147266
Branch: androidx-main
commit a25c7ad45538dca8ebe65bb170ff04605efb8af9
Author: Marcello Albano <maralb@google.com>
Date: Wed Jul 06 15:47:18 2022
Added parameter to `BaselineProfileRule#collectBaselineProfile` to filter output file by package names
Bug: 220146561
Test: ./gradlew :benchmark:integration-tests:macrobenchmark:cC -Pandroid.testInstrumentationRunnerArguments.class=androidx.benchmark.integration.macrobenchmark.BaselineProfileFilterTest
This change adds a new parameter to `BaselineProfileRule#collectBaselineProfile` in order to allow filtering for baseline profile output file and keep only the desired packages. This is useful when creating a baseline profile for a library. Note that, in order to work, the code cannot be obfuscated.
Change-Id: If7338bff7f7a1bde4daeff1af1f684985103012d
Relnote: Added a new parameter to `BaselineProfileRule#collectBaselineProfile` to filter output file by package names
M benchmark/benchmark-macro-junit4/src/main/java/androidx/benchmark/macro/junit4/BaselineProfileRule.kt
M benchmark/integration-tests/macrobenchmark/build.gradle
A benchmark/integration-tests/macrobenchmark/src/androidTest/java/androidx/benchmark/integration/macrobenchmark/BaselineProfileFilterTest.kt
M benchmark/integration-tests/macrobenchmark-target/src/main/AndroidManifest.xml
A benchmark/integration-tests/macrobenchmark-target/src/main/java/androidx/benchmark/integration/macrobenchmark/target/EmptyActivity.kt
M benchmark/benchmark-macro/src/main/java/androidx/benchmark/macro/BaselineProfiles.kt
M benchmark/benchmark-macro-junit4/api/public_plus_experimental_current.txt
M benchmark/benchmark-macro/api/restricted_current.txt
Description
Take an argument to BaselineProfileRule to allow apps to pass multiple package prefixes for filtering (for library test app use case).