Hprof Heap Graph
A HeapGraph that reads from an Hprof file indexed by HprofIndex.
Types
Functions
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
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.