Search packages, repositories and app categories

Package detailsv11.0.2

leak_tracker

A framework for memory leak tracking for Dart and Flutter applications.

AndroidiOSmacOSWindowsLinux
30-day downloads
11.3M
Likes
215
Pub points
160

Install package

flutter pub add leak_tracker

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

Leak Tracker is a Dart and Flutter package designed to detect memory leaks in applications. It provides tools to monitor object lifecycles and identify instances that are not being properly disposed of, helping developers maintain optimal memory usage. By integrating seamlessly into development workflows, it supports debugging across multiple platforms including Android, iOS, macOS, Windows, and Linux. The package is particularly useful during testing and performance optimization phases.

Use cases

  • Identifying retained objects after navigation
  • Monitoring widget lifecycle in Flutter apps
  • Detecting unmanaged subscriptions
  • Performance tuning in long-running apps
  • Debugging memory spikes during testing

Key features

  • Real-time memory leak detection
  • Cross-platform support
  • Integration with Flutter's dev tools
  • Detailed object retention analysis
  • Lightweight runtime overhead

Suitable for

  • Flutter developers focused on performance
  • Teams conducting rigorous app testing
  • Apps with complex state management
  • Developers troubleshooting memory issues
  • CI/CD pipelines for memory validation

Considerations

  • Not intended for production use
  • Requires careful setup in test environments
  • May impact test execution speed
  • Best used during development or staging
  • Limited to detecting certain types of leaks

Original README

Original README snapshot from the linked source repository. Visit the repository for the latest content.

CI

Memory leak_tracker

This is a framework for detecting and troubleshooting memory issues in Dart and Flutter applications.

Packages

Package Description Version
leak_tracker (work in progress, used by flutter_test) A framework for memory leak tracking for Dart and Flutter applications. pub package
leak_tracker_testing (work in progress, used by flutter_test) Leak tracking code intended for usage in tests. pub package
leak_tracker_flutter_testing An internal package to test leak tracking with Flutter. pub package
memory_usage (experimental) A framework for memory usage tracking and snapshotting. pub package

Guidance

Ready for use:

Contributing

For general contributing information, see Dart-wide CONTRIBUTING.md.

For package-specific contributing guidance see:

Categories

Dependencies

Dependency list 5 items

Source repository

Projects using this package

Rankings