stokito / IdeaJol

Intellij plugin that shows an object layout in memory to help optimize it. Uses OpenJDK JOL tool
https://plugins.jetbrains.com/plugin/10953-java-object-layout
Apache License 2.0
142 stars 9 forks source link

Show object layout of live object in debug window #5

Open stokito opened 6 years ago

stokito commented 6 years ago

This plugin is useless because it shows a layout of class itself while real size of object may vary because of inner objects. So we need a support of GraphLayout.parseIncance() and since we can't create an object the easiest way will be to parse it from a debug window. Also this allows users to see a layout of real life object in running application.

stokito commented 6 years ago

Looks like this will be not so easy to implement. JOL needs to be attached as an agent and I have no glue how to do that.