Repository navigation
Description
Is there an existing issue for this?
- I have searched the existing issues
- I have read the guide to filing a bug
Use case
We are primarily targeting the web platform with Flutter. While other platforms benefit from the very helpful Performance View, it states that developers targeting web should be happy with the Chrome dev tools (and stops there).
The Chrome dev tools will not give you any insights specific to Flutter, or at least not without manual digging. This includes many things listed in the docs for the Performance View, like quickly seeing the most problematic phase (Build/Layout/Raster) and finding out what widget is (most) responsible for it. It's all just "Scripting".
Flutter web typically performs less than native apps. I would say that makes good performance analysis tools more important than for native platforms.
Proposal
Can we make performance analysis for web easier? Ideally, the same tools you have for native apps are made available. Failing that, we need guidance on how to use the Chrome dev tools to achieve the same.
Activity
yjbanov commentedon Jul 13, 2023
Moved it to team-tool because it sounds the closest to Flutter DevTools, but feel free to relabel if this is wrong.
eliasyishak commentedon Jul 17, 2023
FYI if you can provide any additional context @kenzieschmoll
kenzieschmoll commentedon Jul 17, 2023
@elliette has recently done some work to enable Flutter timeline events to show up in the Chrome DevTools Performance tool. While there are still some more Flutter specific features that the Flutter DevTools performance page provides over Chrome DevTools, exposing Flutter's timeline events to Chrome DevTools will be a huge help over what was there previously. Elliott, is there anything that a user needs to do to see the Flutter timeline events in Chrome?
elliette commentedon Jul 17, 2023
Hello @HeinrichJanzing!
As Kenzie mentioned, we recently added support for exposing Flutter timeline events in the Chrome DevTools. This support is included in Dart 3.1.0-269.0.dev, which is not yet on Flutter stable/beta channels yet, but is on the Flutter main channel if you would like to try it out.
Instructions:
Note: You can also now emit your own timeline events using the dart:developer Timeline and TimelineTask APIs for further performance analysis.
Let me know if you run into any issues or have further questions!
github-actions commentedon Aug 15, 2023
Without additional information, we are unfortunately not sure how to resolve this issue. We are therefore reluctantly going to close this bug for now.
If you find this problem please file a new issue with the same description, what happens, logs and the output of 'flutter doctor -v'. All system setups can be slightly different so it's always better to open new issues and reference the related ones.
Thanks for your contribution.
HeinrichJanzing commentedon Aug 28, 2023
@Eliette I much appreciate your answer and even more the work behind the new support. Right now we have other things on our minds but I'm sure we will be trying it in the next months. This will go a long way - we'll see then whether it's "enough".
Add documentation for performance profiling web apps (#9323)
Add documentation for performance profiling web apps (flutter#9323)