What problem does it solve?
This Skill helps you turn natural-language performance questions into correct, executable Perfetto SQL that extracts timing and memory-related signals from Android Perfetto trace files.
Core Features & Use Cases
- Natural-language to Perfetto SQL translation: Convert an intent like “CPU frequency around timestamp T” into valid Perfetto SQL that you can run with trace_processor.
- Safe, reusable query generation: Enforces idempotent creation patterns (CREATE OR REPLACE / DROP + re-create for virtual tables) to prevent re-run failures.
- Correct trace-time handling: Produces robust logic for open-ended intervals (dur = -1) using trace_end() - ts, and encourages using standard library modules instead of brittle manual arithmetic.
- Perflog extraction targets: Extract slice/thread-related data (including startup-focused queries like android_thread_slices_for_all_startups) and counter/counter_track values for named counters.
Quick Start
Ask it to “Extract the total duration in milliseconds of slices whose name matches RenderThread from the provided Perfetto trace, and include the trace_end() handling for any slices with dur = -1.”