JVM Debugger Memory View

Compatible with Android Studio
Nov 01, 2017
43 828

This plugin extends the built-in JVM debugger with capabilities to explore objects in the JVM heap during a debug session.

The Memory View shows you the total number of objects in the heap grouped by their class name.

When you're stepping over the code, the Diff column shows how the number of objects changes between debugger stops. This way you can easily see how the code you're stepping over affects the heap.

A double click on a class name, opens a dialog with instances of this class. The dialog lets you filter instances by an evaluated expression. All debugger operations such as Inspect, Mark Object, Evaluate Expression, Add to Watches, etc can be applied to instances in this dialog.

WARNING: version for Android Studio contains few restrictions:

  • Getting a large number of instances may fail and stop VM due to Android memory limitations.
  • Android Studio may freeze, see this bug

Recent change notes

  • Fix compatibility issues with AS 3.0
  • Add ability to see only classes marked as tracked in the classes tool window
  • Fix minor bugs
  • Added ability to track new instances (concrete instances in 'Diff' column)
  • Added ability to see allocation position for new tracked objects
  • Few minor improvements and bug fixes
  • New icons
  • Fixed empty text in classes view when filtering is matching nothing
  • New filtering in classes view (supports regex)
  • Added highlighting of filtering matches in classes view
  • Added ability to select an item with arrow keys when writing filtering expression
  • Added beta version for Android Studio 2.2

General usage instructions

WARNING: The plugin is incompatible with the IDEA versions after 2017.1. The Memory View is available out of the box in the IDEA 2017.1.

Please, see the screenshot to find it.