$npx skillfedfor your agent

perfetto

Python APIs and bindings for Perfetto (perfetto.dev)

With conditionsPyPI MonitoringReleased Jul 20261.3M downloads / moapache-2.0Pure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — perfetto-0.57.2-py3-none-any.whl
v0.57.2 · released 2026-07-07 · 1 runtime deps: protobuf

Yes, if you need to programmatically analyze Perfetto traces or other compatible trace formats. The low install friction, active maintenance, permissive license, and zero known vulnerabilities make it a safe choice. The alpha status means the API may change, so pin the version in production. Not necessary if you only need the browser-based UI or one-off manual trace inspection.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Low install friction with a single runtime dependency (protobuf).
  • Active maintenance with recent releases; last commit 2026-08-14 and version 0.57.2 released 2026-07-07.
  • Alpha status indicates the API may still evolve.

License · maintenance · safety

apache-2.0 (permissive) — Licensed under Apache 2.0 (permissive), allowing free use, modification, and distribution with minimal restrictions—suitable for both open-source and commercial projects.

last release 2026-07-07 (38 days) · last repo commit 2026-08-14 · 6,346 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 1,341,501 downloads/mo, #4,027 on PyPI

Verify before relying

pip install perfetto

import perfetto
# Load and query a trace file
processor = perfetto.TraceProcessor(trace_file='trace.perfetto-trace')
result = processor.query('SELECT * FROM sched_slice LIMIT 10')
  • Whether the Python package provides direct access to all Perfetto trace processor features or a subset
  • Whether traces must be pre-captured by Perfetto daemons or if the package can initiate tracing
  • Performance characteristics when querying large multi-GB trace files
  • Whether the package works on Windows, macOS, and Linux or has platform-specific limitations
Same gist for agents: .md · .json

What it is and what it does

Perfetto is a Python interface to Perfetto's trace processor, enabling programmatic analysis of system and application performance traces. It lets you load trace files and query them using SQL, making it possible to automate trace analysis, extract custom metrics, and integrate trace inspection into Python workflows. The package is built on top of Perfetto's production-grade tracing infrastructure, which is the default system for Android and Chromium.

The package depends only on protobuf and installs as a pure Python wheel, making it lightweight to add to existing projects. It's designed for developers, performance engineers, and SREs who need to analyze traces captured by Perfetto daemons or other compatible tools—such as Linux perf, Chrome JSON traces, or macOS Instruments—without manually parsing binary formats.

Use it for

  • Automate analysis of Android app performance traces to detect slow startups, dropped frames, or memory issues
  • Query Linux kernel traces to analyze scheduling behavior, syscalls, and CPU performance bottlenecks
  • Extract custom metrics from Chromium browser traces for performance regression detection
  • Batch-process multiple trace files to generate performance reports and SRE dashboards
  • Integrate trace analysis into CI/CD pipelines to flag performance regressions automatically

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

With conditions

Yes, if you need to programmatically analyze Perfetto traces or other compatible trace formats.

The low install friction, active maintenance, permissive license, and zero known vulnerabilities make it a safe choice. The alpha status means the API may change, so pin the version in production. Not necessary if you only need the browser-based UI or one-off manual trace inspection.

Install

perfetto on PyPI

Before you install

Low install friction with a single runtime dependency (protobuf). Active maintenance with recent releases; last commit 2026-08-14 and version 0.57.2 released 2026-07-07. Alpha status indicates the API may still evolve.

License in practice

Licensed under Apache 2.0 (permissive), allowing free use, modification, and distribution with minimal restrictions—suitable for both open-source and commercial projects.

Quickstart

pip install perfetto

import perfetto
# Load and query a trace file
processor = perfetto.TraceProcessor(trace_file='trace.perfetto-trace')
result = processor.query('SELECT * FROM sched_slice LIMIT 10')

Verify before relying

  • Whether the Python package provides direct access to all Perfetto trace processor features or a subset
  • Whether traces must be pre-captured by Perfetto daemons or if the package can initiate tracing
  • Performance characteristics when querying large multi-GB trace files
  • Whether the package works on Windows, macOS, and Linux or has platform-specific limitations

Package facts

Licenseapache-2.0 permissive
Python supportNot specified
Install frictionLow. Pure-Python wheel
Runtime dependencies
1 package
protobuf
MaintenanceActively maintained 38 days since the last release
Last repo commit
First released
Downloads1,341,501 / month, #4,027 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Development Status :: 3 - AlphaProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.9

Evidence: perfetto-0.57.2-py3-none-any.whl

Tags

Capabilities
trace analysis pythonperfetto trace processorsystem profiling tracesperformance trace queryingtrace visualization datasql trace analysisandroid tracing python
Topics
performance-analysistrace-processingsystem-profiling
PyPI keywords
trace processortracingperfetto

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “trace analysis python”

  • perfettoPerfetto is a Python binding for Perfetto's trace processor, allowing…
  • tlparsetlparse parses structured PyTorch torch.compile trace logs and…
  • HolisticTraceAnalysisAnalyzes PyTorch Profiler traces to identify performance bottlenecks…

Give your agent the search over MCP, or paste the wish link into any chat.

More Monitoring packages

tqdm Worth it
PyPI · Libraries · released Jul 2026

Wraps any iterable to display a real-time progress bar in the terminal or Jupyter notebook, showing iteration count, elapsed time, and estimated time remaining.

copyleftpure Python · 3.8+
648.6Mdownloads / mo
opentelemetry-semantic-conventions Worth it
PyPI · Monitoring · released Jul 2026

Provides generated Python code for OpenTelemetry semantic conventions, enabling standardized attribute naming and constant definitions for instrumentation and telemetry collection.

Install it if you are using OpenTelemetry and want to follow semantic conventions correctly.

Apache-2.0pure Python · 3.10+
542.9Mdownloads / mo
opentelemetry-sdk Worth it
PyPI · Monitoring · released Jul 2026

Provides the reference implementation of the OpenTelemetry API for collecting and exporting traces, metrics, and logs from Python applications.

Apache-2.0pure Python · 3.10+
521.8Mdownloads / mo
opentelemetry-api With conditions
PyPI · Monitoring · released Jul 2026

Provides the abstract API and interfaces for OpenTelemetry instrumentation in Python, defining how to emit traces, metrics, and logs without tying code to a specific SDK implementation.

Apache-2.0pure Python · 3.10+
463.8Mdownloads / mo
opentelemetry-exporter-otlp-proto-http Worth it
PyPI · Monitoring · released Jul 2026

Exports OpenTelemetry observability data to an OpenTelemetry Collector using Protobuf-encoded messages over HTTP.

Install it if you are using OpenTelemetry in Python and need to send data to a Collector over HTTP.

Apache-2.0pure Python · 3.10+
409.9Mdownloads / mo
opentelemetry-instrumentation Worth it
PyPI · Monitoring · released Jul 2026

Provides automatic instrumentation commands and programmatic APIs to inject distributed tracing into Python applications without code changes, detecting and instrumenting packages used by your program.

Install it if you need distributed tracing without code changes and have compatible instrumented packages in your environment.

Apache-2.0pure Python · 3.10+
393.5Mdownloads / mo

See also keke · viztracer · osprofiler · HolisticTraceAnalysis · nvidia-nvtx · mlflow-tracing · cupti-python · nvidia-nvtx-cu12 · google-cloud-trace · nvidia-nvtx-cu11