- Course
droidcon NYC '19: Shark: Diving Into the Guts of LeakCanary's Hprof Parser
droidcon NYC 2019 | Shark: Diving Into the Guts of LeakCanary's Hprof Parser | Pierre-Yves Ricau
- Course
droidcon NYC '19: Shark: Diving Into the Guts of LeakCanary's Hprof Parser
droidcon NYC 2019 | Shark: Diving Into the Guts of LeakCanary's Hprof Parser | Pierre-Yves Ricau
Get started today
Access this course and other top-rated tech content with one of our business plans.
Try this course for free
Access this course and other top-rated tech content with one of our individual plans.
This course is included in the libraries shown below:
- Core Tech
What you'll learn
LeakCanary, a memory leak detection library for Android, that was slow and used a lot of memory. For LeakCanary 2, Pierre-Yves Ricau wrote a new heap dump parser, Shark, which uses 10 times less memory and is 6 times faster. In this session, Pierre dives to the byte level, builds up to efficiently compute shortest paths and dominators (graph theory without any math), and uses profiling tools to optimize algorithms and data structures where it matters.