Android Perfetto Performance Skill
Captures and analyzes Android Perfetto traces to optimize app startup, UI smoothness, and system resource usage.
The android-perfetto-skill is a comprehensive performance engineering tool for Claude Code that automates the capture, analysis, and reporting of Android system traces. It provides specialized workflows for diagnosing cold starts, UI jank, ANRs (Application Not Responding), and memory leaks by leveraging SQL-based trace processing. Whether you are debugging binder IPC overhead or profiling CPU scheduling, this skill guides you through the entire optimization lifecycle, from raw trace collection to generating scored reports and identifying actionable code-level fixes.
主要功能
01Intelligent environment validation for Android package IDs and connected devices.
024 GitHub stars
03Run comparison tools to benchmark performance deltas across different app versions.
04Detailed scored reports covering binder IPC, memory, and thread scheduling.
05SQL-based analysis of Perfetto traces using trace_processor_shell or MCP.
06Automated trace capture for Startup, UI Jank, and ANR scenarios via ADB.
使用场景
01Reducing app cold-start times by identifying and fixing slow initialization blocks.
02Debugging intermittent UI lag and frame drops during complex user interactions.
03Investigating the root causes of ANRs and memory pressure in profileable builds.