~/talk

Live: Debugging Recycler View Performance using Systrace/Perfetto

Talkat droidcon Italy 2021 · 2021-11-12..11-13· [android]
links:none on file
slides:none on file

Live debugging shows concrete fixes and numbers not buzzwords: capture traces with Systrace/Perfetto and custom Trace.beginSection markers, find that onBindViewHolder takes 511 ms on bad cases, replace a costly HorizontalScrollView with a proper RecyclerView and measured slow Material Chip inflation (about 4 ms dropping to ~1 ms after swapping to a styled TextView). The process highlights exact hot methods, microsecond/millisecond timing, and validated improvements end-to-end rather than vague examples.

AI-written summary · about

  1. 0:00Start
  2. 1:59Skipped Frames
  3. 3:55Developer Options
  4. 6:05Visual Code Inspection
  5. 6:30Items Adapter
  6. 8:35System Traces
  7. 18:09Recap
  8. 26:46Validate Our Optimizations
  9. 30:11Sources of Slow Recycler Views
~/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.