Skip to content

[analyzer] Excessive memory consumption after updating analysis_options.yaml several timesΒ #57080

@incendial

Description

@incendial

Steps:

  1. Open analysis_options.yaml
  2. Change it, save and wait for reanalysis
  3. Repeat several times

I think there is something leaking after the project is reanalyzed as I'm observing increased memory consumption that does not go away (and it took around 10 updates to get to 1.4GB for me):
Screenshot 2024-11-13 at 14 24 46

The above result is for when I tried to prepare a repro, and the next one is one of my last observations:
Screenshot 2024-11-13 at 14 20 06

On a restart the project takes ~700 MB. Also note that no other code was changed during the restarts, only the analysis_options.yaml config.

Dart SDK version: 3.5.1 (stable) (Tue Aug 13 21:02:17 2024 +0000) on "macos_arm64"

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2A bug or feature request we're likely to work onarea-dart-modelFor issues related to conformance to the language spec in the parser, compilers or the CLI analyzer.type-bugIncorrect behavior (everything from a crash to more subtle misbehavior)type-performanceIssue relates to performance or code size

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions