perfetto-trace-analysis

Analyze Perfetto traces to identify root causes of Android performance issues.

Updated Jun 26, 2026
One-click install
npx skills add https://github.com/yash-garg/pi-config --skill perfetto-trace-analysis-yash-garg
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: perfetto-trace-analysis
Source: https://github.com/yash-garg/pi-config/tree/main/skills/perfetto-trace-analysis
Command: npx skills add https://github.com/yash-garg/pi-config --skill perfetto-trace-analysis-yash-garg

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps identify the root causes of Android app latency, memory issues, and UI jank by systematically analyzing Perfetto trace files and connecting symptoms to verified evidence.

Core Features & Use Cases

  • Trace Investigation Workflow: Analyze Perfetto traces using structured hypothesis-driven investigation, evidence collection, and dependency tracing.
  • Performance Domain Analysis: Investigate CPU, graphics, I/O, IPC, memory, and power bottlenecks with specialized trace analysis techniques.
  • Use Case: When an Android application suffers from slow startup or frame drops, use this Skill to inspect trace data, find blocking operations, and produce an evidence-backed root cause report.

Quick Start

Ask the skill to analyze the provided Perfetto trace file and identify the main cause of the Android application's performance issue.

Frequently Asked Questions about perfetto-trace-analysis

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I analyze a Perfetto trace to find the cause of Android UI jank?

Perfetto trace analysis identifies Android performance bottlenecks by applying hypothesis-driven investigation workflows with trace_processor to inspect UI scheduling data, find blocking operations, and verify root causes of frame drops.

What is the best way to debug Android app startup delays using trace files?

The best way to debug Android app startup delays is using Perfetto trace analysis to systematically trace process initialization dependencies, inspect CPU scheduling and I/O stalls, and connect slow startup symptoms to verified performance evidence.

Can I use SQL to investigate memory pressure and CPU bottlenecks in Perfetto traces?

Yes, you can use SQL to investigate memory pressure and CPU bottlenecks by running trace_processor workflows against the Perfetto SQL schema to query scheduling events and validate performance metrics within the trace file.

Does Perfetto trace analysis work for diagnosing Android IPC issues and power consumption?

Perfetto trace analysis works for diagnosing Android IPC issues and power consumption by applying domain-specific performance investigation techniques to trace binder transactions and system power states to uncover verified root causes.

How do I validate the Perfetto SQL schema during a performance investigation?

To validate the Perfetto SQL schema during a performance investigation, use trace_processor workflows to ensure required tables exist and query correctly for CPU, graphics, I/O, IPC, memory, and power bottleneck trace data.