~/talk

Universal heap trimming with LeakCanary 3

Talkat droidcon San Francisco 2024 · 2024-06-06..06-07· [android, web-performance]
slides:none on file

Adds a heap-diff detector to LeakCanary 3 that runs during automated scenarios (Espresso, Robolectric, UIAutomator or JVM tests) and takes periodic heap dumps, builds breadth-first traversal trees and diffs them to surface nodes whose outgoing references grow across iterations. Demo shows a JetNews analytics list growing across 10 iterations (detected as ~101 objects with new entries) and finds real issues in an app like Slack; tool is alpha and used in production testing at Block.

AI-written summary · about

  1. 0:00LeakCanary introduction
  2. 7:32Memory growth impact
  3. 12:52Non-UI leak limits
  4. 14:42Heap trimming discovery
  5. 16:26Garbage collection basics
  6. 21:45Heap diffing in LeakCanary 3
  7. 23:08Live heap trimming demo
  8. 30:51Fixing real app leaks
  9. 33:22Slack app testing
  10. 35:50Call to action
  11. 36:55Q&A
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.