Fixed
Status Update
Comments
cc...@google.com <cc...@google.com>
ra...@google.com <ra...@google.com>
ap...@google.com <ap...@google.com> #2
A couple of questions:
1. Have you saw crash in real device or only in simulators?
2. Do you use dynamic feature for language ID?
1. Have you saw crash in real device or only in simulators?
2. Do you use dynamic feature for language ID?
pr...@google.com <pr...@google.com> #3
Tested on Android 12 Emulator with custom executor, but cannot repro this issue.
Description
Background
The save profile broadcast sent by Macrobenchmark can take over 500ms to complete on lower-end devices.
On a Pixel 1 running Android 10, it takes ~500ms. For A J2 Core running Android 8, it takes ~700ms to complete. A more conservative 1s wait may be better to avoid non-determinism in profile data collection.
See attached screenshots.
The offending code in macrobenchmark is here:https://cs.android.com/androidx/platform/frameworks/support/+/androidx-main:benchmark/benchmark-macro/src/main/java/androidx/benchmark/macro/ProfileInstallBroadcast.kt;l=165?q=saveProfile