Fixed
Status Update
Comments
cc...@google.com <cc...@google.com>
ra...@google.com <ra...@google.com>
ap...@google.com <ap...@google.com> #2
Yigit, do you have time to fix it?
reemission of the same liveData is racy
reemission of the same liveData is racy
pr...@google.com <pr...@google.com> #3
yea i'll take it.
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