Skip to content

leak_tracker MVP #6266

Description

@polina-c

This issue collects user feedback on leak tracking user stories.
MVP tracking: #6909
Bigger issue: #3951

Design doc (draft): https://docs.google.com/document/d/1hlGY6HnsH5EJhpQDFm-_e-Sr9euQf6jE74TxkqDxhGY/edit?resourcekey=0--7J08lEADd6HpaTGC1B-Pw

Activity

  1. self-assigned this
    on Aug 28, 2023
  2. added
    P1high priority issues at the top of the work list, actively being worked on.
    on Aug 29, 2023
  3. changed the title [-]leak_tracker release[/-] [+]leak_tracker MVP[/+] on Oct 10, 2023
  4. polina-c commented on Oct 11, 2023

    @polina-c
    ContributorAuthor

    Will appreciate a signal from community to prioritize use cases.
    Please, add all emoji that apply to your case for leak_tracker, to this comment.

    I develop an application and I want to make sure that:
    😀 - disposables from Flutter and my other dependencies are not leaking in my code
    👀 - disposables defined in my application are not leaking in my code

    I develop a package and I want to make sure that:
    🎉 - disposables from Flutter and my other dependencies are not leaking in my code
    🚀 - disposables defined in my package are not leaking in my code
    👍 - my consumers can ensure the dependencies defined in my package are not leaking in their code

    Also will appreciate a comment on the issue with details about your case.

  5. navaronbracke commented on Oct 12, 2023

    @navaronbracke

    I was about to ask what we are planning to do on leak tracking a runApp() call ;)

    I do agree that we should

    • have Flutter clean up leaks in the framework
    • be able to leak trace a runApp() call, i.e. an application built with Flutter.
    • I think enforcing dependencies to not leak is a harder problem, since some dependencies might be outdated or not receive many updates.

    For plugin developers, they should be able to manage leaks through the example app. I.e. make sure it does not leak, so then the plugin is sure to not leak either.
    -> 1P packages in flutter/packages fall into this category I think.

  6. polina-c commented on Oct 13, 2023

    @polina-c
    ContributorAuthor

    I was about to ask what we are planning to do on leak tracking a runApp() call ;)

    I do agree that we should

    • have Flutter clean up leaks in the framework
    • be able to leak trace a runApp() call, i.e. an application built with Flutter.
    • I think enforcing dependencies to not leak is a harder problem, since some dependencies might be outdated or not receive many updates.

    For plugin developers, they should be able to manage leaks through the example app. I.e. make sure it does not leak, so then the plugin is sure to not leak either. -> 1P packages in flutter/packages fall into this category I think.

    Thank you. Do you mean 'dependencies' or 'consumers'?
    If dependencies, the consumer can file a bug against them asking to make sure the disposables do not leak in the package code.
    If consumers, package author cannot enforce them, but can enable it to them, by carefully defining disposables, cleaning the leaks up in the package code and strongly recommending to use leak_tracker in the package README.md.

    Makes sense?

    I updated description to make the item 👍 clearer.
    We are considering leak tracking for applications. It is just question of priorities. Right now we focus on regression testing, but leak_tracker is designed to be able to track running applications too.

  7. polina-c commented on Oct 26, 2023

    @polina-c
    ContributorAuthor
  8. polina-c commented on Nov 28, 2023

    @polina-c
    ContributorAuthor
  9. sfshaza2 commented on Jun 26, 2024

    @sfshaza2
    Contributor

    I don't think that this requires docs on docs.flutter.web. Let me know if I'm wrong.

  10. kenzieschmoll commented on Jul 2, 2024

    @kenzieschmoll
    Member

    I don't think that this requires docs on docs.flutter.web. Let me know if I'm wrong.

    You are correct. Nothing to document on flutter.dev for this. The leak_tracker package is only in use to track leaks for the Flutter framework right now.

  11. added
    P2important to work on, but not at the top of the work list.
    and removed
    P1high priority issues at the top of the work list, actively being worked on.
    on Jul 2, 2024
  12. added
    P3issues we think are valid but not important
    and removed
    P2important to work on, but not at the top of the work list.
    on Jan 23, 2025
  13. ritick-plateron commented on Jun 12, 2025

    @ritick-plateron

    Hello, is there anything I need to do specifically to enable the leak tracker tab in the devtools of the latest Flutter version? I am trying to use it but I can't get it to work. Please help.

  14. polina-c commented on Jun 18, 2025

    @polina-c
    ContributorAuthor

    Leak tracker is not integrated with DevTools at the moment. See how to use it here: https://github.com/dart-lang/leak_tracker/blob/main/doc/leak_tracking/OVERVIEW.md

  15. polina-c commented on Sep 10, 2025

    @polina-c
    ContributorAuthor
  16. Harishwarrior commented on Sep 10, 2025

    @Harishwarrior

    Done: https://pub.dev/packages/leak_tracker

    Does the pub readme needs update? It links to this issue. But, the issue is closed..

  17. polina-c commented on Sep 10, 2025

    @polina-c
    ContributorAuthor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

P3issues we think are valid but not important

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions