Repository navigation
Open
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work listc: new featureNothing broken; request for a new capabilityNothing broken; request for a new capabilityc: proposalA detailed proposal for a change to FlutterA detailed proposal for a change to Flutterframeworkflutter/packages/flutter repository. See also f: labels.flutter/packages/flutter repository. See also f: labels.platform-webWeb applications specificallyWeb applications specificallyteam-webOwned by Web platform teamOwned by Web platform teamtriaged-webTriaged by Web platform teamTriaged by Web platform team
Description
Note: I'm not sure how this would work or how much work this entails. But it came up as a topic from conversations with @liyuqian, and we noticed there is no bug tracking it.
Use case
- Performance optimization: Running a Flutter app on the web and seeing some skipped frames, I'd like to reuse my knowledge of Flutter performance tools to start addressing the issue.
- Education: Writing docs about performance, I'd like to give the users two version of an app in DartPad. Users are able to bring up the performance overlay to see how one version of the app is performing much faster than the other one.
Proposal
- Enable the performance overlay for Flutter web apps.
For clarity, this is what I mean by performance overlay.
It is an engine layer added to a --profile (or --debug) version of an app by the engine. It shows the build times for the UI thread (a.k.a. main thread, app thread, etc.) and the GPU thread (a.k.a. raster thread -- i.e. not actually running on the GPU).
Reacted by David Armstrong, Roman Petrov, Francesco Iapicca, Uli Prantz, Gonçalo Palma, Carlo Lucera, filipe-barroso-3r, Filipe Barroso, Abid Shaon, Suriel Bendahan and 33 more
Reacted by Max Chertov, creativecreatorormaybenot, Yehor Hryshenchuk and Caleb Lindsey
Metadata
Metadata
Assignees
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work listc: new featureNothing broken; request for a new capabilityNothing broken; request for a new capabilityc: proposalA detailed proposal for a change to FlutterA detailed proposal for a change to Flutterframeworkflutter/packages/flutter repository. See also f: labels.flutter/packages/flutter repository. See also f: labels.platform-webWeb applications specificallyWeb applications specificallyteam-webOwned by Web platform teamOwned by Web platform teamtriaged-webTriaged by Web platform teamTriaged by Web platform team

Activity
goncalo-palma-3r commentedon Sep 14, 2020
Thumbed up, we desperately need that 🙏
OldMetalmind commentedon Sep 14, 2020
Working on flutter web. This would help!
abid-shaon-3r commentedon Sep 14, 2020
This would be very helpful for as
ghunkins commentedon Mar 24, 2021
Performance for Flutter web is very needed.
ted-marozzi commentedon Sep 27, 2021
This would be very useful
creativecreatorormaybenot commentedon Sep 27, 2021
Note that you can easily build your own performance overlay on web using the
FrameTimingAPI.An example of what that looks like can be seen here. You can see the performance overlay in the top right:
If there is interest in such thing, I could create a similar overlay as a package.
ted-marozzi commentedon Sep 27, 2021
Hey I would definitely be interested in this. Could you share some of the code in the demo that lead to that overlay in the mean time? Looking into the frame timing api. Very interesting. Seems like it wouldn't be too much work to integrate it into the actual flutter sdk though!
creativecreatorormaybenot commentedon Oct 30, 2021
I published the custom performance overlay for web as a package 🎉
https://pub.dev/packages/performance
[web] Unskip web tests that now pass in gestures, services, and widge…
[web] Unskip web tests that now pass in gestures, services, and widge…