Fixed
Status Update
Comments
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?
na...@google.com <na...@google.com> #3
Tested on Android 12 Emulator with custom executor, but cannot repro this issue.
Description
Macrobenchmark FrameTimingMetric makes a couple assumptions that I'm not seeing hold true on the trace above:
actual <nr>
expected <nr>
Choreographer#doFrame <nr>
DrawFrame <nr>
Note: we observe instead that frame numbers for actual/expected get out of sync, see screenshot.
Note: we observe instead that the actual frame is wrapping a separate renderthread render
The problem
Together, these mean that macrobenchmarks drop many frames, and don't report them as part of metrics. In this scenario (MotionLayoutBenchmark#messageJson), it's roughly ~100 frames dropped out of ~140.
See also b/210605870