Closeable Heap Graph
A HeapGraph that should be closed after being used.
Functions
Returns the 1-based index in the heap dump of the object corresponding to the provided objectId, and throws IllegalArgumentException otherwise.
Returns the HeapObject corresponding to the provided heapDumpIndex, and throws IllegalArgumentException if heapDumpIndex is less than 1 or more than objectCount.
Returns the HeapObject corresponding to the provided objectId, and throws IllegalArgumentException otherwise.
Returns the HeapObject corresponding to the provided objectId or null if it cannot be found.
Returns the HeapObject corresponding to the provided objectIndex, and throws IllegalArgumentException if objectIndex is less than 0 or more than objectCount - 1.
Returns true if the provided objectId exists in the heap dump.
Properties
In memory store that can be used to store objects this HeapGraph instance.
All GC roots which type matches types known to this heap graph and which point to non null references. You can retrieve the object that a GC Root points to by calling findObjectById with GcRoot.id, however you need to first check that objectExists returns true because GC roots can point to objects that don't exist in the heap dump.