Perfetto

Google·Google.Perfetto

Performance instrumentation and tracing for Android, Linux and Chrome.

winget install --id Google.Perfetto --exact --source winget

Latest 59.1·October 26, 2026

Release Notes

We’re excited to share Perfetto v59.1! This release brings traces that survive device reboots on Android, a much friendlier Trace Processor command line (rustc-style SQL errors, markdown output and a dedicated agent mode for AI coding tools), flamegraphs as call trees and function tables, sampled callstacks over time, a new linux.smaps data source, and a long list of UI, SQL standard library and SDK improvements.

Note: v59.0 was never released due to a build issue on the Linux and Android release builders. v59.1 contains the same changes plus the build fix. πŸ” Persistent traces across reboots (Android) Set TraceConfig.persist_trace_across_reboots and the trace file is kept on disk if the device reboots mid-trace, then recovered and uploaded on the next boot via perfetto --upload-after-reboot. Recovered traces record why in the new trace_recovery_reason metadata entry. πŸ”₯ New ways to look at profiles in the UI Flamegraphs are great for spotting where cost goes, but they're only one way to read a profile. v59 adds two new views over the same data, plus a way to see how stacks change over time.

  • Call Tree view: every flamegraph panel now has Flamegraph, Call Tree and Functions tabs. Call Tree is an expandable table with total and self cost for every frame, shown top-down (callees) or bottom-up (callers). The tabs share the same filters, and switching between them doesn't re-run the query.
  • Functions view: a flat table with the cost of each function summed over every call path, the quickest way to answer "which function is hottest overall?". Recursion isn't double-counted.
  • Available everywhere: CPU callstack samples, heapprofd and Java heap profiles, Heap Dump Explorer, Day Explorer, the pprof (aggregate profiles) page and track event callstacks all get the new views.
  • Sampled callstacks over time: each thread with callstack samples now gets a "Callstack flamechart" track beneath its Callstacks track. It draws every sample's stack along the timeline, so you can see how a thread's behaviour changes over time, not just the aggregate. Frames can be coloured by function or by code mapping (library), and clicking a frame shows its details.
  • pprof: step through multi-profile pprof archives with the arrow keys, and copy profile names.
  • Heap dumps: ART heap dumps can be exported as pprof from the flamegraph Export menu (including in Heap Dump Explorer), and Heap Dump Explorer flags classes potentially merged by R8. image Sampled callstacks over time: the new Callstack flamechart track under surfaceflinger's main thread, with the flamegraph for an area selection and the new Flamegraph / Call Tree / Functions tabs below. image Call Tree view (top-down, fully expanded) for the same selection: total and self CPU time for every frame. image Functions view: self and total CPU time per function, summed over every call path. πŸ•ΈοΈ Flows that scale to dense graphs Selecting a slice in a trace with a dense flow graph (build system dependency traces are a common example) used to make the UI follow the entire flow chain, which could grind it to a halt. Many people have hit this over time (#1004).
  • Show only direct flows: a new setting on the Settings page that, when enabled, shows only the flows directly connected to the selected slice (one step) instead of the whole chain.
  • Off by default: existing behaviour is unchanged unless you turn it on. πŸ’» A friendlier Trace Processor CLI
  • Readable SQL errors: SQL errors are now laid out like rustc diagnostics, with a --> source:line:col location naming where the SQL came from (query, module, macro or metric), a line-number gutter and a caret.
  • Markdown output: trace_processor query --format markdown prints compact markdown tables, with configurable --max-rows, --max-bytes and --max-cell-width limits.
  • Agent mode: when run by a coding agent (detected from environment variables such as CLAUDECODE or AI_AGENT) with stdout not a terminal, results default to markdown and errors become single-line JSON. Force it on or off with --agent / --no-agent.
  • Interactive shell: prints aligned tables and shows the result of every statement, not just the last one.
  • Progress and colour: terminal-aware progress reporting, --no-progress, and NO_COLOR / FORCE_COLOR support. image Trace Processor CLI: a rustc-style error for a misspelled column, then query results printed as a markdown table with --format markdown. Learn more about agent mode 🧠 Memory: linux.smaps data source traced_perf can now record /proc/pid/smaps for selected processes, once or periodically. Processes can be selected by cmdline and uid range. The record page can also capture smaps snapshots alongside ART heap dumps. πŸ” Symbolization without local binaries Native profiles from Linux machines often arrive without the unstripped binaries needed to symbolize them. Trace Processor can now fetch debug files from debuginfod servers by build ID, so trace_processor bundle --debuginfod input.pftrace output.tar produces a symbolized bundle with no local binaries at all.
  • Opt-in and local-first: lookups only happen with --debuginfod. Servers come from --debuginfod-urls or DEBUGINFOD_URLS, and local binaries are always tried first.
  • Cached: downloads are cached for later runs (--debuginfod-cache-path to override), with configurable connection and stall timeouts.
  • Much less work: mappings are now deduplicated across processes, so large traces send far fewer requests to llvm-symbolizer.
  • Clearer results: accurate counts of resolved and unresolved frames, --verbose to see every lookup, --quiet for scripts, and a clean error instead of a crash when llvm-symbolizer can't be run.
  • samply profiles: unsymbolized Firefox Profiler (samply) profiles can now be symbolized with bundle. Learn more about symbolization 🐍 Python: connect to warm sessions TraceProcessor(remote='my-session') connects to a running trace_processor server unix session, so you can parse a large trace once and query it from many scripts. Only query() is supported over Unix sockets for now. remote also accepts HTTP addresses, and addr is deprecated in its favour. πŸ–₯️ UI Enhancements
  • Zoom to slice: double-click a slice to select and zoom into it.
  • Track groups: "Expand all" / "Collapse all" in the track menu, and Shift+click on a group header to expand or collapse everything below it.
  • Android: frame timeline tracks are grouped by layer, and the AndroidLockContention plugin is revamped.
  • Aggregations: CPU slice aggregations gain a "CPU Time / Wall Time" column. Thread slice aggregations gain optional process, thread and track columns, and drill-downs open in a new tab. The old Pivot Table tab has been removed in favour of slice aggregations.
  • Permalinks: workspaces are now saved in permalinks.
  • Robustness: the timeline recovers from WebGL context loss, and two-finger horizontal scrolling no longer triggers browser back/forward on ChromeOS, Linux and Windows.
  • Embedding: embedders can stream traces over postMessage as a ReadableStream and use the new shareable / downloadable flags (see the compatibility notes below). ⚑ Trace Processor & SQL standard library
  • New modules: android.process_state (process and freezer state, exit reasons), android.lock_held, android.cpu.cluster_utilization, android.job_scheduler_states_track_events, std.gpu.vulkan_debug_names, plus android_cuj_blocking_calls.
  • Wattson: now supports Tensor G6 (CPU, GPU and TPU), MT6789, and Linux devices identified by their device tree.
  • Importers: perf.data imports handle fork and exit records and thread-scoped PMU counters. The strace importer works with real strace -f / -T output.
  • Performance: faster ART hprof import with lower peak memory. SQLite upgraded to 3.53.4. πŸš‚ Tracing Service and Probes
  • GPU: per-draw-call GPU render stage slices (GpuRenderStagesConfig.drawcall_stages).
  • Compression: compressed traces keep the clock snapshot, trace config and UUID uncompressed, so on-device tools can inspect them.
  • Robustness: the service now rejects producers with an unusable shared memory buffer instead of crashing. Fixed heapprofd unwinding on x86_64. 🧩 SDK improvements
  • Data loss detection: detect data lost to shared memory exhaustion with TraceContext::drop_count() (C++) / PerfettoDsTracerGetDropCount() (C).
  • Flush info: C SDK data sources can read the flush reason and flags.
  • Big-endian: big-endian support in the in-process SDK.
  • Android Java SDK: only allowlisted apps can register with the system tracing service. πŸ”§ Build
  • New GN args: perfetto_cxx_standard, and perfetto_use_system_{re2,zstd,linenoise,expat}.
  • Bazel: Perfetto can be used as a non-root Bazel module. ⚠️ Migration and compatibility notes Perfetto v59 includes a few changes worth checking when upgrading:
  • postMessage traces: traces posted to the UI as a bare ArrayBuffer are now local-only by default. Use the new shareable / downloadable flags (which replace localOnly) to control this.
  • Graph functions: graph_reachable_dfs / graph_reachable_bfs now return the start nodes when the graph has no edges, instead of an empty table. See PerfettoSQL backwards compatibility.
  • Shell commands: the .dump, .load-metrics-sql and .run-metrics interactive shell commands have been removed, and .width and -W/--wide are deprecated and no longer do anything. Use trace_processor export sqlite instead of .dump. A huge thanks to everyone who contributed to making Perfetto v59 possible. A specific thanks to our first time contributors:
  • @sadrulhc made their first contribution in #7064
  • @Svetlitski made their first contribution in #6988
  • @MichaelFQuigley made their first contribution in #6909
  • @iw4p made their first contribution in #7186
  • @dragosp95 made their first contribution in #7247
  • @mmeenaks-gh made their first contribution in #7089
  • @yforta made their first contribution in #7297
  • @rvandermeulen made their first contribution in #7346
  • @Archkon made their first contribution in #7136
  • @willmcvicker made their first contribution in #7222

Installer type: zip

x64β€”F7CE9E3F43CB2C0C0525E79861054AA1A50A800BB88023B990D767247C80AC88

Details

Homepage
https://github.com/google/perfetto
License
Apache-2.0
Publisher
Google
Support
https://github.com/google/perfetto/issues

Older versions (16)

58.2
x64β€”5A00DBB990B1AA422C818169259FFAF0671E2FF276A51857F30185D8BF9D1409
57.2
x64β€”0D47A31F9058CAE5442BAEAB1FFCE3F3F75E176F4F7CD8FEDB1A29A51955975E
57.1
x64β€”CFAEC300D7599298025CB656DFE90FAB55FE4C9FB375F328C1E37C0ADB177B0D
56.1
x64β€”DD4F6C2D5CC9BD5F4FEA32EA1C3402FA2291626FC4DD6501DFCAF8B406C8FDBB
56.0
x64β€”779D90BB227F7145F443B851B4B8300CBAF2F4ED603BB753D0287C5DC45190E2
55.3
x64β€”E14F9FAD47020670642E543BC2E58D9AEDAD8592322DDA94ED1CDA52F5954EA9
55.2
x64β€”2B4DD37813B0C84CE7E73DD76B19F8267C7FF501CD795C87DDD5D737D4AA108D
55.1
x64β€”9144E0E2BC45B4A26F2A0A97CBF4EBF8758B2E486C258DDA6AD87BD70BD4C8C5
54.0
x64β€”4D828E3BD1213FA9C468D02D1ECA9CC474233026217B6EE9D7F292105B86CF47
53.0
x64β€”2D4ECE71234CDF783710D83CF4783DCE3E5E745AD40ECE649F95CF208A1A897C
52.0
x64β€”37A837AE7BA9D133E231D0C4D59C6313F1D5028E515AB700FAF037D77469F994
51.2
x64β€”EA54BE4969DA65C2BC46191810416D8CAC11617AD49E84E27C55C20EC3834306
51.1
x64β€”ED3171FFF3D207629DCA3733FF91CC39AAEBAC96B701F4780E053E9508DF5835
50.1
x64β€”FC8DA574993C52A2615C727CA779BCE4A0BF0B49BD07743BE627C034A0AA3EE3
49.0
x64β€”BBD9ADE28127FA7CD96E9F24BFE2B386E252059F02EF5471B4711587C4361E5D
34.0
x64β€”FAE66B8529C5193B8C3341E8983219114F27BA0747510F33CC3FC719429479E4