

This is just a first pass, feedback and ideas welcome! Performance improvements ¶

Since we’re parsing the heap to find leaks anyway, we might as well report additional interesting metrics. I built LeakCanary to help fix leaks, but in doing so I accidentally wrote a fairly flexible heap dump parser.

Visualize the heap dominators / retained size as a treemap.Īnyway, that’s still very much the future, let’s talk about what’s in 2.9.1 now! New metrics in heap analysis metadata ¶.Multiplatform heap analysis? Analyze a JVM heap dump in your browser?!.Moving heap analysis leak visualisation to a separate single app (written with Compose!) available on the PlayStore.What are some things you’d like to see in a future LeakCanary 3 version? Tell me on Twitter! For more details, see the 2.10 Milestone and the full diff. This list reflects only a subset of all changes. 💥 #2430 Fix ShortcutManager crash on Android TV.🐛 #2393 Allow LeakCanary to be defined as an AndroidX Startup dependency.💥 #2371 Fix db crash when navigating heap dump screen.

🐤 #2416 Add Android 13 monochrome icon.🐤 #2440 Add Android 13 POST_NOTICICATIONS permission as well as a new config to disable notifications entirely.LeakCanary will now crash in release builds Plumber-android is a new artifact that fixes known Android leaks 🚽🔧Īnalyzing leaks from the CLI is easier than ever 🍺 Improved support for data structure internalsĭetecting root views retained after View.onDetachedFromWindow()ĭetecting services retained after Service.onDestroy()Ĭompute retained size within the leak trace Breaking change: FailTestOnLeakRunListener deleted
