Perfetto Your App for Perfect Performance
summary
Perfetto is a browser-based systemwide tracer that records CPU, threads, wake locks and UI events and shows jank when a frame exceeds 16.6 ms; traces come from ADB, Android Studio or a quick‑settings button and require adding a profilable flag to production builds for deeper data. The workflow is: record, inspect thread states and bounded transactions, add custom trace markers via Trace APIs or AndroidX Tracing KTX, instrument coroutines with a custom dispatcher, hook Looper.setMessageLogging and OkHttp or RxJava schedulers, then re-record to verify fixes.
AI-written summary · about
chapters (7)
- 0:00Perfetto intro
- 1:07Perfetto vs Android Studio
- 2:31Recording on real devices
- 3:35Perfetto interface
- 6:48Custom trace markers
- 9:38Advanced instrumentation
- 12:51Summary
related talks
39mDeep-Diving Android Performance with Perfetto
34mClient Tracing At Scale
38mA Busy Android App Developers' Guide to Perfetto
43mAdvanced System Profiling Tracing and Trace Analysis with Perfetto
35mIn Search of Performance: the Subtle Art of Android Profiling
43mBenchmarking your application
44mPAPA: Performance of Android Production Applications
27mIntroducing the Mobile PerfSDK
