Skip to content
🤔 Documentation issue? Report it

//leakcanary/shark/HeapObject/HeapPrimitiveArray

HeapPrimitiveArray

class HeapPrimitiveArray : HeapObject

A primitive array in the heap dump.

Functions

Name Summary
readRecord open override fun readRecord(): HprofRecord.HeapDumpRecord.ObjectRecord.PrimitiveArrayDumpRecord
Reads and returns the underlying PrimitiveArrayDumpRecord.
toString open override fun toString(): String

Properties

Name Summary
arrayClass val arrayClass: HeapObject.HeapClass
The class of this array.
arrayClassName val arrayClassName: String
The name of the class of this array, identical to Class.getName.
asClass val asClass: HeapObject.HeapClass?
This HeapObject as a HeapClass if it is one, or null otherwise
asInstance val asInstance: HeapObject.HeapInstance?
This HeapObject as a HeapInstance if it is one, or null otherwise
asObjectArray val asObjectArray: HeapObject.HeapObjectArray?
This HeapObject as a HeapObjectArray if it is one, or null otherwise
asPrimitiveArray val asPrimitiveArray: HeapObject.HeapPrimitiveArray?
This HeapObject as a HeapPrimitiveArray if it is one, or null otherwise
byteSize val byteSize: Int
The total byte shallow size of elements in this array.
graph open override val graph: HeapGraph
The graph of objects in the heap, which you can use to navigate the heap.
objectId open override val objectId: Long
The heap identifier of this object.
objectIndex open override val objectIndex: Int
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.
positiveObjectId val positiveObjectId: Long
objectId masked to be a positive unique identifier, as reported in Android Studio.
primitiveType val primitiveType: PrimitiveType
The PrimitiveType of elements in this array.
recordSize open override val recordSize: Int
The total byte size for the record of this object in the heap dump.