• Grey Facebook Icon
  • Grey Twitter Icon
  • Grey YouTube Icon

Droidcon is a registered trademark of Mobile Seasons GmbH

Diving into the guts of LeakCanary's Hprof parser

Pierre-Yves Ricau

Android Tech Lead

Square

Android Tech Lead @Square, author of LeakCanary & AndroidAnnotations, killer of fragments.🍷🥖⛷🇫🇷

twitter-logo-button.png
Abstract

LeakCanary, a memory leak detection library for Android, was slow and used a lot of memory. For LeakCanary 2, I wrote a new heap dump (hprof) parser that uses 10 times less memory and is 6 times faster. Come learn about the gory implementation details and performance tricks! We'll dive to the byte level then build our way up to efficiently compute shortest paths and dominators (graph theory without any math!), then use profiling tools to optimize algorithms and data structures where it matters. And of course it'll be 100% Kotlin.

Intermediate

Session

white