Perfetto Performance Analysis
Perfetto sporanalyse med en festet trace_processor og 235 spørringsgrafer
Bestått
Hva den gjør
Analyserer Android, Linux og Chromium Perfetto-spor ved å kjøre deterministisk SQL mot en sjekksum-festet trace_processor_shell i stedet for å gjette fra symptomnavn. Inkluderer 235 kjørbare analysegrafer pluss 14 arbeidsflytguider som dekker oppstart, jank og rulling, inndataforsinkelse, ANR og binder-blokkering, CPU-planlegging, minne og GC, GPU og SurfaceFlinger, strøm og termisk. Utløses når du gir Claude en .pftrace eller perfetto-trace og spør hvorfor en app er treg, hakkete eller har regressert mellom to bygg.
Testrapport
Bootstrappet sin egen Perfetto v57.2 trace_processor og verifiserte binærens SHA-256 mot den inkluderte lock file, deretter kjørte startup_analysis end to end on a real 2 MB Android warm-start trace in 13.7 seconds. Én kommando returnerte en 15-step evidence graph: a 156.5 ms warm start of androidx.benchmark.integration.macrobenchmark.target, activityResume holding 68% of it with only 2.2 ms of self time, 11 synchronous main-thread binder calls into system_server (14.8% of startup), 89.8% of the main thread asleep, and a data-quality flag (R008_TTFD_GT_DUR) on the TTFD figure. The honest no-skill baseline, hand-written SQL through the official perfetto Python library, found the package name and a 144 ms launching slice but no self-time, thread-state or binder attribution and no quality warning. The bundled SQL guardrail also rejected a bare span_join call on the spot, which is exactly the Perfetto footgun it advertises. Eneste ujevnhet: some result strings come back in Chinese despite English-only documentation.
Testet på: 2026-08-10 · Claude Code 2.x (agent harness)
Installer
git clone --depth 1 https://github.com/Gracker/Perfetto-Skills.git mkdir -p ~/.claude/skills cd Perfetto-Skills && cp -r skills/perfetto-performance-analysis ~/.claude/skills/perfetto-performance-analysis
Kommandoer og eksempelprompter
/perfetto-performance-analysisPerfetto sporanalyse med en festet trace_processor og 235 spørringsgrafer
Skills utløses av vanlige forespørsler — ingen kommandoer å huske. Etter installasjonen aktiverer prompter som disse skillen (på engelsk):
Analyze this Perfetto trace and find the app's startup durationWhat's causing jank and scroll latency in this trace file?Find the top main-thread blocking contributors in this trace