leakcanary
A memory leak detection library for Android.
LeakCanary is an Android development library that automatically detects memory leaks in your app while you test it, pinpointing exactly which objects are being held in memory unnecessarily so you can fix the cause before shipping.
LeakCanary is a library for Android apps that automatically detects memory leaks. A memory leak happens when an app holds onto chunks of memory it no longer needs, which over time causes the app to use more and more RAM, slow down, or crash. LeakCanary runs alongside your Android app during development, watches for these leaks, and reports exactly which objects are being held unnecessarily so developers can track down and fix the problem. Written in Kotlin, it integrates directly into Android projects.
Where it fits
- Automatically detect memory leaks during manual testing of an Android app without writing any detection code yourself.
- Identify exactly which object chain is causing a leak so you can fix the root cause rather than guessing at the problem.
- Add leak detection to an Android project with a single dependency line and no additional configuration.