Hprof Heap Graph
A HeapGraph that reads from an Hprof file indexed by HprofIndex.
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.
This is only public so that we can publish stats. Accessing this requires casting HeapGraph to HprofHeapGraph so it's really not a public API. May change at any time!
Returns true if the provided objectId exists in the heap dump.
Properties
Sequence of all classes in the heap dump.
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.
Sequence of all instances in the heap dump.
Sequence of all object arrays in the heap dump.
Sequence of all objects in the heap dump.
Sequence of all primitive arrays in the heap dump.