This is a framework for detecting memory issues in Dart and Flutter applications.
Package | Description | Version |
---|---|---|
leak_tracker | (work in progress, used by flutter_test) A framework for detecting memory issues for Dart and Flutter applications. | |
leak_tracker_testing | (work in progress, used by flutter_test) Leak tracking helpers intended for usage in Dart and Flutter tests. | |
leak_tracker_flutter_testing | Internal package to test leak tracker with Flutter. | |
memory_usage | (experimental) Functionality to listen to memory usage events and to auto-snapshot memory in case of overuse. |
Ready for use:
Under construction:
Check Work in progress to see what is under construction.
Help us to prioritize future work by upvoting and commenting potential new features.
For general contributing information, see Dart-wide CONTRIBUTING.md.
To upgrade Dart SDK with new version of memory_usage
update leak_tracker commit
hash for leak_tracker_rev in Dart SDK DEPS.
To upgrade versions of leak_tracker and/or leak_tracker_testing used by testWidgets
:
-
Publish new version of the packages.
-
Ask a googler to refresh the packages with copybara in G3.
-
Upgrade Flutter:
Update versions of leak_tracker and/or leak_tracker_testing in the files:
- packages/flutter/pubspec.yaml
- packages/flutter_test/pubspec.yaml
- packages/flutter_tools/lib/src/commands/update_packages.dart
To regenerate diagrams, run in the root of packages:
dart run layerlens