Skip to content

DevTools is slow to startup #3169

Description

@jacob314

DevTools is a bit slower to startup than expected. It is possible this is just a Flutter Web issue or it is possible we are serving which settings that defeat some caching of assets used by Flutter Web. For example, we need to make sure that that CanvasKit is cached rather than downloaded from the server each time.

Once DevTools renders it displays a spinner while sending off the following requests:

{jsonrpc: 2.0, method: getVersion, id: 9, params: {}}
{jsonrpc: 2.0, method: getVersion, id: 10, params: {}}
{jsonrpc: 2.0, method: getFlagList, id: 11, params: {}}
{jsonrpc: 2.0, method: getVM, id: 12, params: {}}
{jsonrpc: 2.0, method: getIsolate, id: 13, params: {isolateId: 1}}

At minimum we should only call getVersion once and we should try to ensure that all other requests are issued in parallel.

Activity

  1. added this to the M31 milestone on Jun 28, 2021
  2. grouma commented on Jun 28, 2021

    @grouma
    Contributor

    Note that there still seems to be a delay after getting a response for those initial requests. package:dwds responds to those requests almost immediately yet the spinner is still shown for a small period of time.

  3. modified the milestones: M31, M32 on Aug 4, 2021
  4. modified the milestones: M32, M33 on Aug 26, 2021
  5. 2 remaining items

  6. added this to the M34 milestone on Oct 4, 2021
  7. modified the milestones: M34, M35 on Nov 4, 2021
  8. kenzieschmoll commented on Feb 15, 2022

    @kenzieschmoll
    Member

    Are we still seeing issues with startup time? @elliette @annagrin

  9. modified the milestones: M35, M37 on Feb 15, 2022
  10. modified the milestones: M37, M40 on May 5, 2022
  11. added
    P2important to work on, but not at the top of the work list.
    and removed on Jul 5, 2023
  12. removed their assignment
    on Jul 19, 2024
  13. srawlins commented on Sep 10, 2026

    @srawlins
    Contributor

    Closing as obsolete.

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

    P2important to work on, but not at the top of the work list.customer-google3

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions