~/talk

Deep-Diving Android Performance with Perfetto

Talkat droidcon Berlin 2025 · 2025-09-24..09-26· [web-performance, android]
links:none on file
slides:none on file

Perfetto recording workflows cover device developer tools, the web UI recorder and CLI automation (usable in CI) and target capture via traceur/adb/Jetpack recorder; traces include CPU, GPU, frace and binder events. Examples show a 250 ms first frame with a 190 ms recomposer and repeated GPU-completion waits plus a binder transaction appearing 83 times; root causes come from matching thread states, CPU core scheduling and custom markers created with the beginAsync/end trace API, making slow startups and jank evidence-based and actionable.

AI-written summary · about

  1. 0:00Introduction
  2. 1:06Why app performance matters
  3. 2:28Profiling tools: Android Studio vs Perfetto
  4. 3:53Perfetto benefits over built-in tools
  5. 5:18Recording Perfetto trace
  6. 6:45Configuring Perfetto trace
  7. 8:09Perfetto trace structure
  8. 10:23Navigating Perfetto traces
  9. 12:32Startup breakdown analysis
  10. 14:01Pinning threads for comparison
  11. 15:50Main thread and frame rendering
  12. 17:17Gaps and GPU wait times
  13. 19:06Custom instrumentation in traces
  14. 20:54Trace API best practices
  15. 22:01Custom instrumentation with system traces
  16. 23:25Diagnosing janky frames
  17. 24:47Frame timelines: expected vs actual
  18. 25:51Causes of janky frames
  19. 26:57Jetpack Compose traces deep dive
  20. 28:40Trace slices for UI content
  21. 30:26First frame rendering optimization
  22. 31:29Binder transactions analysis
  23. 32:54Thread states and CPU scheduling
  24. 34:59Avoiding buffer size issues
  25. 35:44Searching traces efficiently
  26. 37:32Key takeaways
  27. 38:18Conclusion
~/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.