~/talk

Memory leaks on Android: lessons learned and methodology

TalkinFrenchat Android Makers 2022 · 2022-04-25..04-26· [web-performance]
links:none on file
slides:none on file

Practical method to find and fix Android memory leaks using LeakCanary and Android Profiler: run LeakCanary (it waits 5 seconds then performs a heap dump), inspect GC root reference chains, and prefer fixing the parent object rather than removing references everywhere. Gives a numeric rule that 90% of leaks are due to incorrect lifecycle handling, shows concrete examples (uncancelled coroutines, a View held by a thread), and provides a demo app with verified fixes.

AI-written summary · about

  1. 0:00Introduction
  2. 0:29Java memory basics
  3. 2:12Android memory & GC
  4. 4:40What is a memory leak
  5. 6:46Leaks impact UX
  6. 7:06Detecting leaks method
  7. 9:13Fix via parent object
  8. 9:53Memory Profiler tool
  9. 10:55LeakCanary detection
  10. 13:02Practice: find leaks
  11. 15:30Case: coroutine leak
  12. 17:57LeakCanary analysis
  13. 19:02Best practices
  14. 20:27Resources & conclusion
  15. 21:30Q&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.