r/AndroidStudio • • 23h ago

I built an Android Studio plugin to make memory leak investigation easier

Post image

I've been working on an Android Studio plugin called LeakLens, focused on making memory leak investigation and heap analysis easier without requiring changes to the application code or adding another SDK.

The idea started with a simple question: can we bring more of the memory debugging workflow directly into Android Studio?

LeakLens currently explores a few areas:

  • Capturing heap dumps through ADB.
  • Analyzing HPROF files using Shark.
  • Investigating object retention and reference paths.
  • Detecting potential lifecycle and memory-related issues through code analysis.
  • Using AI to help explain findings and suggest possible fixes.

I recently presented the project in a 40-minute session at Droidcon India 2026. One thing that stood out was how interested developers were in having more of this workflow available directly inside the IDE.

I'm still actively developing it and would love feedback from people who use Android Studio regularly.

A few things I'd like to understand:

  • What do you currently use for investigating memory leaks?
  • Which parts of heap dump analysis do you find most frustrating?
  • What Android Studio tooling or integrations would genuinely improve your debugging workflow?
  • Would you find an IDE-integrated memory investigation workflow useful alongside LeakCanary?

Project: LeakLens

GitHub: https://github.com/dev-vikas-soni/leak-lens

JetBrains Marketplace: https://plugins.jetbrains.com/plugin/32079-leaklens--android-memory-leak-detector--ai-fix-assistant

Feedback, criticism, and suggestions are welcome!

2 Upvotes

0 comments sorted by