flutter-perf-memory-and-leaks
Use when memory climbs during normal use, the app is killed on low-memory devices, or a screen keeps working after it was closed. Investigates and fixes Flutter memory growth and leaks: undisposed controllers, focus nodes, timers and stream subscriptions, listeners never removed, BuildContext captured by async work or long-lived objects, unbounded image or data caches, and state that outlives its screen. Uses DevTools memory snapshots and leak tracking. Do not use for slow frames (flutter-perf-build-and-rebuild) or image decode size (flutter-perf-images-and-assets).
Pinned to revision 9e999f720b3d, so it is the text this page describes rather than whatever the author pushed since.
Files
Every link opens the file at its source, pinned to the revision this page describes.