Perfetto
Open-source suite for recording, visualizing and querying system and app traces on Android, Linux and Chrome.
At a Glance
Perfetto core suite (tracing daemons, SDK, UI, Trace Processor) is released under the Apache License 2.0, free to use, modify and distribute.
Engagement
Available On
Alternatives
Listed Dec 2026
About Perfetto
Perfetto is an open-source suite of tracing SDKs, daemons and tools from Google for recording, visualizing and analyzing traces of complex software. It is the default tracing system for Android and Chromium, with system-wide recording on Android and Linux, and a browser-based UI plus a SQL-based Trace Processor for analysis.
What It Is
Perfetto helps developers understand the behavior of complex client and embedded systems and root-cause functional and performance issues. Tracing daemons collect data from many processes and the kernel into one trace file. A low-overhead C++ tracing SDK (with a community-maintained Rust SDK) lets apps add their own trace points that appear on the same timeline as system data. The UI at ui.perfetto.dev runs fully locally in the browser, works offline, and can open traces from other tools such as Chrome JSON, Linux perf, Firefox Profiler, macOS Instruments, systrace and Fuchsia.
Recording and Analysis Workflow
On Android and Linux, Perfetto captures ftrace scheduling data, CPU frequency, memory counters, callstack sampling, and Java and native heap profiles. Traces can be recorded with helper scripts such as record_android_trace, tracebox on Linux, or from the UI's recording page. Trace Processor loads traces into a SQLite-based model queried through PerfettoSQL and a standard library, from the command line, the UI, Python (pip install perfetto) or C++. The docs state it supports traces up to tens of GBs, and BigTrace can run a query across many traces in a distributed setup.
Android Memory Debugging and AI Agents
A Perfetto blog post describes capturing lightweight Java heap graphs, exploring them in the Heap Dump Explorer with dominator-based flamegraphs, and querying them with PerfettoSQL. Perfetto also ships an agent skill for AI coding agents that can run trace_processor, read the trace, and cross-reference source code to locate leaks.
Where It Fits
The docs say Perfetto is not a distributed tracer like OpenTelemetry, does not record system traces on Windows or macOS, and is not suited to game GPU tracing. Its UI can still visualize converted distributed traces and macOS Instruments traces.
Collections
Popular collections
- See What Your Agent Is Doing remix
Collection by @joemseifi
- Local-First Databases
Collection by @joemseifi
- Charts, Graphs, and Diagrams
Collection by @joemseifi
- Pick Up Where Your Agent Left Off
Collection by @caiovalverde
Add Perfetto to one of your collections.
Community Discussions
Be the first to start a conversation about Perfetto
Share your experience with Perfetto, ask questions, or help others learn from your insights.
Pricing
Open Source (Apache 2.0)
Perfetto core suite (tracing daemons, SDK, UI, Trace Processor) is released under the Apache License 2.0, free to use, modify and distribute.
- Licensed under Apache License 2.0
- System-wide profiling for Linux and Android
- C++ and Rust tracing SDKs
- Perfetto UI runs fully in the browser with no server interaction
- Trace Processor with SQL-based trace analysis
Capabilities
Key Features
- System-wide tracing on Android and Linux (ftrace, scheduling, CPU frequency, memory)
- Java and native heap profiling
- Callstack sampling profiles
- C++ tracing SDK and community Rust SDK
- Browser-based trace viewer that runs fully locally and offline
- Opens Chrome JSON, Linux perf, Firefox Profiler, macOS Instruments, systrace, Fuchsia traces
- SQL-based Trace Processor with a standard library
- Python API and CLI for trace analysis
- Heap Dump Explorer and Memscope
- BigTrace for distributed query across many traces
- AI agent skill for trace analysis
