Perfetto records timelines of system and application activity, then explores them in a local browser UI or analyzes them with SQL.
Overview
Perfetto is an open-source suite for recording, visualizing, and analyzing traces: timelines of what software and the underlying system were doing. It is the default tracing system for Android and Chromium.
System-wide recording works on Android and Linux, capturing scheduling, CPU frequency, memory, syscalls, kernel tracepoints, and on Android also framework events, callstack sampling, and Java and native heap profiles. Developers can add trace points with C++ or Rust SDKs and view them beside kernel and framework data.
The Perfetto UI runs fully in the browser without installation; traces stay local and are not uploaded. It can open very large traces and accepts formats from Chrome JSON, Linux perf, Firefox Profiler, macOS Instruments, pprof, systrace, Fuchsia, and others.
Trace Processor parses traces into queryable SQL tables, with a standard library for common analyses, usable from the command line, Python, or C++. Tracing daemons collect data from many processes and the kernel into one trace file, alongside the SDK and UI.
Typical workflows include Android startup and jank investigation, in-app C/C++/Rust instrumentation, Linux kernel scheduling visualization, and Chrome browser tracing via the same backend used behind chrome://tracing.
Key features
- Android and Linux system-wide trace capture
- C++ and Rust in-app tracing SDKs
- Browser-based Perfetto UI for timelines
- SQL analysis via Trace Processor
- Import from Chrome, perf, Instruments, and more
- Tracing daemons for multi-process collection
- Chrome recording integration in the UI
- Python and C++ Trace Processor bindings
Use cases
- Debugging Android jank, ANRs, and memory issues
- Profiling where time goes in native app code
- Visualizing Linux kernel scheduling and syscalls
- Chrome and Chromium performance tracing
- Batch SQL analysis across many trace files
Does the same job as
Perfetto doesn't name these products itself, but its own description shows it does the same job.