Heap Object
An object in the heap dump.
Types
A class in the heap dump.
An instance in the heap dump.
An object array in the heap dump.
A primitive array in the heap dump.
Functions
Reads and returns the underlying ObjectRecord.
Properties
This HeapObject as a HeapClass if it is one, or null otherwise
This HeapObject as a HeapInstance if it is one, or null otherwise
This HeapObject as a HeapObjectArray if it is one, or null otherwise
This HeapObject as a HeapPrimitiveArray if it is one, or null otherwise
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.
objectId masked to be a positive unique identifier, as reported in Android Studio.