sentry-java icon indicating copy to clipboard operation
sentry-java copied to clipboard

Fix total frames metrics

Open stefanosiano opened this issue 1 year ago • 1 comments

Description

The callback we rely on is called only when the frames change, so we cannot get the real total number of frames. We already use the same approach of JankStats. We could try to use Choreographer directly, but that's bad for performance. We have to find a way to calculate total frames. Internal doc with some considerations

stefanosiano avatar Nov 24 '23 12:11 stefanosiano

Let's check if we can get notified if the refresh-rate changes. We could fallback to the last known refresh-rate and simply count the number of expected frames.

markushi avatar Nov 29 '23 14:11 markushi

This is done by the frame delay PR

romtsn avatar Mar 06 '24 14:03 romtsn