You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Consider adding Performance overlay to platform-web #52258
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).
Note that you can easily build your own performance overlay on web using the FrameTiming API.
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.
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 commented on Oct 30, 2021
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…