~/talk

A Busy Android App Developers' Guide to Perfetto

Talkat droidcon London 2025 · 2025-10-30..10-31· [android, web-performance]
slides:none on file

Perfetto traces collected via the ADB websocket and a ring buffer reveal CPU spikes, frame drops and a high-frequency binder/job churn during app startup; using call-stack sampling and a pinned ENQ debug track surfaces a weather_update_worker.doWork task that repeatedly enqueues maintenance work, creating an expensive recursive WorkManager loop. Recording choices matter (don’t over-record), native tracing overhead is ~1,200 ns for platform API versus about ~120 ns with the new tracing library, and the trace-driven hypothesis directly points to the root cause in the code.

AI-written summary · about

  1. 0:00Perfetto for Android apps
  2. 7:07Recording traces with Perfetto
  3. 10:58Analyzing Perfetto traces
  4. 16:34Startup performance issues
  5. 19:41Call stack sampling for uninstrumented code
  6. 24:16Improving tracing with AndroidX Tracing
  7. 27:48Tracing Driver library
  8. 31:21Context propagation in coroutines
  9. 33:27Automating with Perfetto macros
  10. 34:32Extending Perfetto with plugins
  11. 36:44Perfetto resources and next steps
~/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.