A Practical Perfetto Introduction for AOSP and Linux Developers
Talkat Open Source Summit India 2026 · on Wednesday, 2026-06-17· at 16:25· Lotus Ballroom 2 (Level 3)·
summary
A hands‑on Perfetto primer that shows how to record traces on Android and embedded Linux using a Yocto tutorial, captures kernel ftrace events and custom Perfetto SDK or ATrace marks, and inspects a 15s Raspberry Pi trace where four I2C loops produce three visible custom slices and 215 µs read events. Demonstrates the trace viewer, built‑in statistics, frame timeline, binder flow counting (81 transactions in 58 ms), and programmatic analysis with the SQL trace processor and stack sampling flame graphs.
AI-written summary · about
chapters (28)
- 0:00Welcome
- 1:05Why Perfetto is a must-try
- 2:31Talk agenda and tracing basics
- 5:20Perfetto’s three pillars
- 6:46Getting started with Android tracing
- 7:46Yocto Perfetto tutorial
- 9:52Python example with Atrace
- 10:57C++ example with Perfetto SDK
- 12:20Tracing setup on Yocto
- 14:04Analyzing traces in Perfetto UI
- 15:51Navigating CPU and process tracks
- 16:35Finding traces with search
- 19:02C++ program trace analysis
- 20:06Executing SQL in Perfetto
- 21:50Advanced tips introduction
- 22:12Basic Perfetto navigation
- 23:16Using trace probes menu
- 24:21Built-in statistics
- 25:48Thread state stats and context switches
- 27:57CPU usage by process
- 29:02Android frame timeline
- 31:51Android logcat integration
- 33:15Binder flows and IPC
- 35:02Advanced SQL features
- 36:07Stack sampling and flame graphs
- 37:53Release notes and new features
- 38:59Android Performance Analyzer outlook
- 39:42Closing remarks
related talks
34mClient Tracing At Scale
35mIn Search of Performance: the Subtle Art of Android Profiling
31mFantastic tracepoints and where to find them
40mDebugging Android Performance at Scale: Lessons from Building Datadog's Mobile Profiler
55mRecent Advances in Linux Tracing
37mAdvanced Performance Profiling Using Perf Tools
44mNow You See Me Too: Visual Tooling for Advanced System Analysis
28mMobile Application Performance Done The Right Way
