perfetto-sql
OfficialQuery Android Perfetto traces with SQL
Data & Analytics#perfetto#trace analysis#trace_processor#perfetto sql#android performance#cpu frequency#span_join
Authorpremex-ab
Version1.0.0
Installs0
System Documentation
What problem does it solve?
It translates natural-language performance data requests into syntactically valid Perfetto SQL, then executes those queries against a local Android Perfetto trace to produce the exact metrics you need.
Core Features & Use Cases
- Natural-language to Perfetto SQL: Converts intents like “CPU frequency around a timestamp” or “total time spent in slices matching a pattern” into correct SQL.
- Trace_processor execution: Runs the generated SQL via the official Perfetto
trace_processorwrapper and returns results in CSV. - Safety and correctness guardrails: Enforces idempotent object creation, correct module/schema usage from
perfetto-stdlib.md, safeSPAN_JOINpatterns, and correct handling of incomplete durations (dur = -1).
Quick Start
Ask the skill: "Extract all slice durations for threads whose name matches RenderThread from the attached trace file and return the total time in milliseconds."
Dependency Matrix
Required Modules
None requiredComponents
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: perfetto-sql Download link: https://github.com/premex-ab/claude-marketplace/archive/main.zip#perfetto-sql Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.