Perfetto's open-source toolkit finds Android memory leaks with SQL and AI agents

Finding and fixing Android memory leaks with Perfetto, SQL, and AI agents

Perfetto's open-source toolkit finds Android memory leaks with SQL and AI agents

A single unregistered callback can pin a destroyed Fragment and tens of megabytes of Bitmap buffers, turning smooth navigation into GC pauses and OutOfMemoryError. Google's Perfetto team open-sourced a full memory-profiling stack: lightweight ART heap graphs that capture object retention without dumping raw payloads, unified timeline correlation with kernel counters, and PerfettoSQL for fleet-wide analysis. The new Perfetto AI Skill lets coding agents query heap graphs, search code, and generate tests to diagnose and fix leaks end to end.

A single unregistered callback in an Android app can quietly pin an entire destroyed Fragment, its view hierarchy, and tens of megabytes of decoded Bitmap buffers in memory.

More from this day

2026-12-01