~/talk

Root causing memory growth with LeakCanary 3

Talkat droidcon New York 2024 · 2024-09-19..09-20· [android]
slides:none on file

Creates reproducible memory-growth detection for Android by running UI scenarios in a loop, taking repeated heap dumps and diffing them with LeakCanary 3 to find structures that steadily gain edges. Builds a heap-diff detector that runs up to 5 heap dumps, 10 repeats, compares reachable-object graphs instead of instance IDs, and flags growing nodes (example: a navLog list causing retained size to rise ~4 KB per iteration that eventually triggers OOM and jank).

AI-written summary · about

  1. 0:00Memory growth analysis intro
  2. 1:03Memory growth vs leaks
  3. 6:27Detecting memory issues with navigation
  4. 11:26Why LeakCanary misses growth
  5. 14:14Heap dumps for object growth
  6. 18:09Graph traversal for GC simulation
  7. 28:48Object ID instability challenges
  8. 29:49Graph structure growth insights
  9. 31:54Heap diff for growing objects
  10. 34:44Interpreting LeakCanary heap diff
  11. 35:49Slack app case study
~/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.