https://developer.android.com/agents/skills/profilers/perfetto-sql/skill

Community

Query Perfetto traces with safe SQL.

Authorfornewid
Version1.0.0
Installs0

System Documentation

What problem does it solve?

It helps you write correct, reliable SQL queries against Perfetto trace data so you can analyze performance and profiling signals without brittle query logic or unsafe assumptions.

Core Features & Use Cases

  • PerfettoSQL query guardrails: Enforces idempotent object creation rules (CREATE OR REPLACE, safe drops for virtual tables) to prevent re-run failures.
  • Correct time and interval handling: Provides guidance for incomplete slices (dur = -1) and safe overlap logic using standards/library features (including SPAN_JOIN/intervals.overlap precedence).
  • Trace-specific correctness: Advises correct join keys (utid/upid), safe argument extraction (EXTRACT_ARG), and safe string matching (GLOB instead of LIKE) for performance and accuracy.
  • Execution protocol: Runs queries via the trace_processor wrapper with --query-string and validates schema/module usage against the Perfetto Standard Library docs.

Quick Start

Ask the agent to generate and execute a validated trace_processor SQL query for your specific Perfetto performance question, using the Perfetto Standard Library schemas for every referenced table or view.

Dependency Matrix

Required Modules

trace_processor

Components

references

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: https://developer.android.com/agents/skills/profilers/perfetto-sql/skill
Download link: https://github.com/fornewid/android-developers-changelog/archive/main.zip#https-developer-android-com-agents-skills-profilers-perfetto-sql-skill

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.