Heap Object
An object in the heap dump.
Types
Heap Class
Link copied to clipboard
A class in the heap dump.
Heap Instance
Link copied to clipboard
An instance in the heap dump.
Heap Object Array
Link copied to clipboard
An object array in the heap dump.
Heap Primitive Array
Link copied to clipboard
A primitive array in the heap dump.
Functions
read Record
Link copied to clipboard
Reads and returns the underlying ObjectRecord.
Properties
asClass
Link copied to clipboard
This HeapObject as a HeapClass if it is one, or null otherwise
asInstance
Link copied to clipboard
This HeapObject as a HeapInstance if it is one, or null otherwise
asObjectArray
Link copied to clipboard
This HeapObject as a HeapObjectArray if it is one, or null otherwise
asPrimitiveArray
Link copied to clipboard
This HeapObject as a HeapPrimitiveArray if it is one, or null otherwise
objectIndex
Link copied to clipboard
An positive object index that's specific to how Shark stores objects in memory. The index starts at 0 and ends at HeapGraph.objectCount - 1. There are no gaps, every index value corresponds to an object. Classes are first, then instances, then object arrays then primitive arrays.
recordSize
Link copied to clipboard
Inheritors
HeapClass
Link copied to clipboard
HeapInstance
Link copied to clipboard
HeapObjectArray
Link copied to clipboard
HeapPrimitiveArray
Link copied to clipboard