flutter / devtools

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

Flutter DevTools Performance FPS is not correct #2865

Open 6a209 opened 3 years ago

6a209 commented 3 years ago
At the same time
Here is Android Studio frame info 51.2 fps

DE3791E3-4E8D-468A-A33E-2879D80CA261

Here is web DevTools frame info 60 fps

4C913C50-8034-4862-BEC8-E59FCA23DD91

On my mobile phone side,it's has Jank, so i think the web Flutter DevTools Performances is not correct ~

Flutter doctor

Doctor summary (to see all details, run flutter doctor -v): [✓] Flutter (Channel stable, 2.0.3, on macOS 11.2.3 20D91 darwin-x64, locale zh-Hans-CN) [!] Android toolchain - develop for Android devices (Android SDK version 30.0.3) ! Some Android licenses not accepted. To resolve this, run: flutter doctor --android-licenses [✓] Xcode - develop for iOS and macOS [✓] Chrome - develop for the web [✓] Android Studio (version 4.1) [✓] VS Code (version 1.54.1) [✓] Connected device (2 available)

! Doctor found issues in 1 category.

jacob314 commented 3 years ago

Fyi @kenzieschmoll I think the tool views are generally consistent in the screenshot but the problem is the DevTools view is not showing enough historic data to show the frames with jank. Notice that only one of the about 30 last frames has jank in the IDE window which matches what DevTools shows. There are probably a large # of jank frames if you could scroll the devtools timeline left further.