Skip to content

Performance profiling support for web #130132

Open

Description

@HeinrichJanzing

Is there an existing issue for this?

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

  1. added
    in triagePresently being triaged by the triage team
    c: new featureNothing broken; request for a new capability
    c: performanceRelates to speed or footprint issues (see "perf:" labels)
    platform-webWeb applications specifically
    c: proposalA detailed proposal for a change to Flutter
    and removed
    in triagePresently being triaged by the triage team
    on Jul 7, 2023
  2. added
    team-toolOwned by Flutter Tool team
    and removed
    team-webOwned by Web platform team
    on Jul 13, 2023
  3. yjbanov commented on Jul 13, 2023

    @yjbanov
    Contributor

    Moved it to team-tool because it sounds the closest to Flutter DevTools, but feel free to relabel if this is wrong.

  4. added
    P3Issues that are less important to the Flutter project
    triaged-toolTriaged by Flutter Tool team
    on Jul 17, 2023
  5. eliasyishak commented on Jul 17, 2023

    @eliasyishak
    Contributor

    FYI if you can provide any additional context @kenzieschmoll

  6. kenzieschmoll commented on Jul 17, 2023

    @kenzieschmoll
    Member

    @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?

  7. elliette commented on Jul 17, 2023

    @elliette
    Member

    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:

    • [Optional] Set debugProfileBuildsEnabled to true to track your app’s widget builds
    • Run your Flutter web app in profile mode
    • Open up Chrome DevTools' Performance panel for your application, and start recording to capture timeline events
    • You should see the Flutter timeline events under the "Timings" section:
    Screenshot 2023-07-17 at 12 54 25 PM

    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!

  8. added
    waiting for responseThe Flutter team cannot make further progress on this issue until the original reporter responds
    on Jul 25, 2023
  9. github-actions commented on Aug 15, 2023

    @github-actions

    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.

  10. HeinrichJanzing commented on Aug 28, 2023

    @HeinrichJanzing
    Author

    @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".

  11. removed
    waiting for responseThe Flutter team cannot make further progress on this issue until the original reporter responds
    on Aug 28, 2023
  12. added
    fyi-toolFor the attention of Flutter Tool team
    team-devexpOwned by the Developer Experience team
    and removed
    team-toolOwned by Flutter Tool team
    on Jul 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3Issues that are less important to the Flutter projectc: new featureNothing broken; request for a new capabilityc: performanceRelates to speed or footprint issues (see "perf:" labels)c: proposalA detailed proposal for a change to Fluttercustomer: dentplatform-webWeb applications specificallyteam-devexpOwned by the Developer Experience team

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions