What problem does it solve? Diagnosing Android performance problems like jank, slow app startup, memory leaks, and battery drain requires deep expertise in trace recording and PerfettoSQL analysis. This Skill orchestrates the entire profiling workflow, from capturing the right data on a device to running structured root-cause analysis on the resulting traces. ## Core Features & Use Cases - Trace Recording: Records system traces, Java heap dumps, native heap profiles, and CPU callstack samples on Android devices using official Perfetto helper scripts, with support for custom multi-source trace configs. - Guided Trace Analysis: Runs a system-wide triage, then spawns parallel subagent investigations per candidate thread to trace dependency chains down to terminal root causes, backed by expert hints for CPU, graphics, I/O, IPC, memory, and power subsystems. - Ad-hoc PerfettoSQL Querying: Drafts, debugs, and executes PerfettoSQL queries against trace files using trace_processor sessions, following schema validation and standard library best practices. - Use Case: A user reports dropped frames in their app. The Skill records a system trace with frame timeline data, triages the trace to find the worst janky frame, investigates the main and render threads across process boundaries, and produces a report classifying the root cause with SQL-backed evidence. ## Quick Start Ask the assistant to record a Perfetto system trace of your app and analyze it to find the root cause of the jank you are seeing.