LeakCanary 2: Leaner, Better, Faster, Kotliner!
summary
LeakCanary 2 Alpha 1 is released with concrete changes: the codebase moves to 100% Kotlin (14k additions, 9k deletions), heap dumps are aggregated with a default leak threshold: 5 to avoid constant UI freezes, results move to SQLite and leaks are grouped by hash so dozens of instances collapse into a few problems, an in‑process custom heap parser cuts memory from 140MB→30MB, 35s→5s, removing the separate analyzer process and enabling instrumentation tests and lightweight production leak counting.
AI-written summary · about
chapters (12)
- 0:00Start
- 3:45Heap Dump
- 4:18Memory Leaks
- 5:56Parsing the Heap Dump
- 15:47Intellij Compile Errors
- 17:12Add Labels
- 23:11What Is the Most Common Issue with the Canary
- 28:18Edge Proof Strings
- 29:02Class Names
- 32:28Instrumentation Test
- 33:22New Parser
- 37:41Better Control of Notifications
related talks
35mA small leak can sink a great ship
31mA Small Leak Can Sink A Great Ship
37mLeakCanary, then what? Nuking Nasty Memory Leaks
37mUniversal heap trimming with LeakCanary 3
47mLeakCanary, and Then? Unraveling Android Memory Leaks
37mRoot causing memory growth with LeakCanary 3
49mPokeLeaks: Gotta Catch 'em All
43mShark: Diving into the guts of LeakCanary's Hprof parser
