~/talk

In Search of Performance: the Subtle Art of Android Profiling

TalkinFrenchat Android Makers by droidcon 2023 · 2023-04-27..04-28· [android, observability, web-performance]
slides:none on file

A practical, step-by-step Android profiling workflow that starts by reproducing a real user scenario and capturing signals with scrcpy screenrecord, then collects Perfetto traces (for flame graphs) and Android Studio CPU/memory callstacks. It shows concrete issues found—e.g., a 200 MB string in SharedPreferences blocking startup, repeated database reads slowing list rendering, and GC spikes causing jank—and describes creating a release-profile build variant, adding trace markers, and running scripts to collect traces so root causes can be pinpointed and fixed.

AI-written summary · about

  1. 0:00Introduction
  2. 3:49Android profiling pillars
  3. 5:14Basic profiling rules
  4. 8:04Onion rule and method
  5. 10:11ScreenCopy for UX capture
  6. 11:35Perfetto system profiling
  7. 16:50Perfetto trace analysis
  8. 21:39Observations and hypotheses
  9. 22:22Android Studio local profiling
  10. 24:12Android Studio techniques
  11. 27:02Flame Graphs interpretation
  12. 28:29Perfetto vs Android Studio
  13. 29:52Jank with Perfetto
  14. 30:13Garbage collection issues
  15. 31:14Memory leak tools
  16. 32:38Custom traces in code
  17. 33:20Code and system trace correlation
  18. 34:44Key steps summary
~/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.