flutter / devtools

Performance tools for Flutter
https://flutter.dev/docs/development/tools/devtools/
BSD 3-Clause "New" or "Revised" License
1.58k stars 326 forks source link

Timeline doesn't show long frame captured in Logging #5306

Open cmkweber opened 1 year ago

cmkweber commented 1 year ago

Timeline sometimes hides long frames and reports no jank detected, even when Logging reports it. Notice the frame stamps in the screenshots.

Logging Timeline


DevTools version: 2.21.1 Connected Device: CPU / OS: x64 (64 bit) macos Dart Version: 3.0.0-261.0.dev Flutter Version: 3.8.0-15.0.pre.3 / master Framework / Engine: 7d85a585da / 3aa112c75c Connected app type: Flutter native (debug build)

kenzieschmoll commented 1 year ago

Are you still able to reproduce this? If so, is there anyway you can export the data on the Performance page and attach it to this issue so that we can reproduce?

github-actions[bot] commented 1 year ago

Without additional information we're not able to resolve this issue, so it will be closed at this time. You're still free to add more info and respond to any questions above, though. We'll reopen the case if you do. Thanks for your contribution!

cmkweber commented 1 year ago

Now that there is additional information in the FrameTiming I am able to identify the issue - the Timeline is not taking into account the vsyncOverhead - which intermittently jumps to 100ms+ (usually a few frames following a GC). The vsyncOverhead is typically very low and doesn’t contribute much to frame time except for spikes every few seconds.