Android Perfetto SQL Trace Analyzer

0•

Translates natural language requests into valid Perfetto SQL queries to analyze Android performance traces using the official trace_processor.

The Perfetto SQL skill empowers developers to debug Android performance issues by converting high-level questions about app behavior into complex SQL queries executed against local trace files. By leveraging the official trace_processor, it automates the extraction of slice, thread, and memory data while adhering to Perfetto-specific best practices like SPAN_JOIN optimization, idempotent table creation, and accurate time-interval calculations. It is an essential tool for quantifying app startup latency, CPU frequency shifts, and thread-state transitions without requiring deep expertise in the underlying Perfetto SQL schema or standard library modules.

Key Features

01Robust handling of trace boundaries and incomplete slices (dur = -1)
02Safe thread and process identification using UTID and UPID
03Automated local execution using the official trace_processor script
04Support for SPAN_JOIN and Perfetto Standard Library modules
050 GitHub stars
06Natural language to Perfetto-compliant SQL translation

Use Cases

01Calculating overlapping time intervals between different thread states
02Quantifying the total time spent in specific app slices during startup
03Analyzing CPU frequency and counter data to debug thermal throttling