Advanced System Profiling Tracing and Trace Analysis with Perfetto
summary
Perfetto replaces systrace and runs on Android and Linux; Android devices (Android 9/10+) have Perfetto and Tracebox installed so tracing works out of the box, while Yocto provides a recipe that lags mainline and contains a simple typo bug you must patch. Recording uses tracebox auto-start or the record_android_trace helper and stores raw traces on the device then pulls them to host. Analysis uses trace_processor SQL, the web UI with pin tracks and visual binder flow linking to correlate IPC and CPU scheduling.
AI-written summary · about
chapters (12)
- 0:00Advanced system profiling intro
- 2:10What is Perfetto
- 3:35Perfetto’s Catapult history
- 6:28Recording traces in Linux
- 11:59Recording traces in Android
- 15:35Custom trace events with SDK
- 23:15Analyzing traces with Perfetto
- 30:08Perfetto ecosystem summary
- 33:31Q&A on storage and flows
- 37:31Q&A on Yocto and Python
- 40:45Q&A on trace formats and UI
- 42:22Perfetto vs other tools
related talks
13mPerfetto Your App for Perfect Performance
39mDeep-Diving Android Performance with Perfetto
38mA Busy Android App Developers' Guide to Perfetto
35mIn Search of Performance: the Subtle Art of Android Profiling
44mPAPA: Performance of Android Production Applications
43mBenchmarking your application
24mPerformance Tooling
37mAdvanced Performance Profiling Using Perf Tools
