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

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

> Hacker News story 50701614 · language: en · submitted 2026-11-30
> Web version: https://zeli.app/story/50701614
> About this feed: https://zeli.app/llms.txt · Agent guide: https://zeli.app/skill.md

▲ 4 · by [lalitmaganti](<https://news.ycombinator.com/user?id=lalitmaganti>) · 💬 0
[original](<https://perfetto.dev/blog/hunting-android-memory-leaks>) · [HN discussion](<https://news.ycombinator.com/item?id=50701614>)

## Summary

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.

## Key quote

> 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.

---

## Cite

- Page: https://zeli.app/story/50701614
- Date: 2026-11-30
- Source: perfetto.dev (https://perfetto.dev/blog/hunting-android-memory-leaks)
- Hacker News: https://news.ycombinator.com/item?id=50701614

## Other languages

- zh: https://zeli.app/zh/story/50701614 · markdown: https://zeli.app/zh/story/50701614.md
- ja: https://zeli.app/ja/story/50701614 · markdown: https://zeli.app/ja/story/50701614.md
- ko: https://zeli.app/ko/story/50701614 · markdown: https://zeli.app/ko/story/50701614.md
- de: https://zeli.app/de/story/50701614 · markdown: https://zeli.app/de/story/50701614.md
- es: https://zeli.app/es/story/50701614 · markdown: https://zeli.app/es/story/50701614.md
- ru: https://zeli.app/ru/story/50701614 · markdown: https://zeli.app/ru/story/50701614.md
