Advanced System Profiling Tracing and Trace Analysis with Perfetto
summary
Perfetto runs on Android and Linux (Yocto via meta-oe Langdale) and combines three parts: tracebox auto-start (a wrapper around ftrace using pbtx configs — use slashes not colons), the trace_processor CLI and a web UI that runs in Chromium; Android is plug‑and‑play since Android 9/10 and offers record_android_trace to replace systrace. The C++ Perfetto SDK provides trace_event macros, flows linked by request ID for cross‑process traces, and SQL queries in the UI; Yocto’s recipe is old and has a typo you fix with a bbappend.
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
45mPerformance lab. The power of the perf tool!
45mThe perf Profiler and the JVM (Part 1)
28mLevel Up Your Game: OS Kernel and Game Interactions revealed with Perfetto
45mJava Profiling in the Linux Style
31mFantastic tracepoints and where to find them
24mlibperf: library for perf events monitoring
29mPerf Support in Xen
32mProcessor tracing in perf
