~/talk

The Subtle Art of Profiling Android Apps

Talkat droidcon San Francisco 2023 · 2023-06-08..06-09· [android, web-performance]
slides:none on file

Local profiling workflow for Android apps that reproduces issues on a real device using a release profilable build then records traces with Perfetto (ui.prof.dev) and a ring buffer to find the timeline boundaries; inspect thread states to spot sleeping or runnable main thread time, correlate with CPU-by-thread to find offending threads, use Android Studio sampling call stacks and flame graphs to reveal a huge SharedPreferences payload blocking startup (hundreds of MB causing seconds of wait) and GC-driven jank seen via the heap daemon, with scrcpy recommended for frame‑by‑frame video.

AI-written summary · about

  1. 0:00Introduction and setup
  2. 3:00Keep it real profiling rules
  3. 7:29Screen recording with strrcpy
  4. 10:16Introducing Perfetto
  5. 13:51Recording a Perfetto trace
  6. 18:29Analyzing thread states in Perfetto
  7. 23:22CPU by thread correlation
  8. 24:24Android Studio CPU sampling
  9. 26:28Flame graphs for startup issues
  10. 28:12Jank analysis with Perfetto
  11. 31:02Memory and GC investigation
  12. 32:48Async sections for UI flows
  13. 34:35Thread correlation in complex flows
  14. 35:38Summary and methodology
~/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.