Heap Class
A class in the heap dump.
Functions
Returns the name of the field declared in this class for the specified fieldRecord.
The total byte size of fields for instances of this class, computed as the sum of the individual size of each field of this class. This does not include the size of fields from superclasses.
Reads and returns the underlying ClassDumpRecord.
The static fields of this class, as a sequence of HeapField.
Returns true if superclass is a superclass of this HeapClass.
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
The class hierarchy starting at this class (included) and ending at the Object class (included).
All direct instances of this class, ie excluding any instance of subclasses of this class.
The total byte size of fields for instances of this class, as registered in the class dump. This includes the size of fields from superclasses.
All instances of this class, including instances of subclasses of this class.
Returns true if this class is an array class, and false otherwise.
Whether this is class is a primitive wrapper type
The name of this class, identical to Class.getName. If this class is an array class, the name has a suffix of brackets for each dimension of the array, e.g. com.Foo[][] is a class for 2 dimensional arrays of com.Foo.
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.
Primitive arrays are one dimensional arrays of a primitive type. N-dimension arrays of primitive types (e.g. int[][]) are object arrays pointing to primitive arrays.
The total byte size for the record of this object in the heap dump.
Returns name stripped of any string content before the last period (included).
All the subclasses (direct and indirect) of this class, in the order they were recorded in the heap dump.