Live: Debugging Recycler View Performance using Systrace/Perfetto
summary
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
chapters (9)
- 0:00Start
- 1:59Skipped Frames
- 3:55Developer Options
- 6:05Visual Code Inspection
- 6:30Items Adapter
- 8:35System Traces
- 18:09Recap
- 26:46Validate Our Optimizations
- 30:11Sources of Slow Recycler Views
related talks
45mFinding and Fixing Performance Problems
34mPerformance in a Kotlin world
35mIn Search of Performance: the Subtle Art of Android Profiling
42mDebugging Application Performance
39mDeep-Diving Android Performance with Perfetto
37mUI profiling in examples. Where is my bottleneck?
33mUI profiling in examples. Where is my bottleneck?
38mA Busy Android App Developers' Guide to Perfetto
