Change theme
Help
Press space for more information.
Show links for this issue (Shortcut: i, l)
Copy issue ID
Previous Issue (Shortcut: k)
Next Issue (Shortcut: j)
Sign in to use full features.
Vote: I am impacted
Notification menu
Refresh (Shortcut: Shift+r)
Go home (Shortcut: u)
Pending code changes (auto-populated)
View issue level access limits(Press Alt + Right arrow for more information)
Unintended behavior
View staffing
Description
Component used:
androidx.benchmark:benchmark-macro-junit4
Version used:1.2.0-alpha04
Devices/Android versions reproduced on:
If this is a bug in the library, we would appreciate if you could attach:
Sample project to trigger the issue:
Reproduction step: Run
./gradlew :benchmark:pixel2Api31BenchmarkAndroidTest
Context:
I would like to generate Baseline Profile rules with GitHub actions. As known, Macrobenchmark can't run on emulators, and Baseline Profile to be generated through
ManagedVirtualDevice
requires the execution of all instrumented tests (including benchmarks, whenever available.)By enabling
dryRunMode
, I can avoid benchmark failures due to emulators' absence. Still, no Baseline Profile gets to be generated.Question:
Considering this is a bug, could it be fixed so that we can get to run
:benchmark:pixel2Api31BenchmarkAndroidTest
and generate the Baseline Profile without annotatingExampleStartupBenchmark
to be ignored and settingdryRunMode.enable=false
?