//leakcanary-repo/shark/HeapObject/HeapPrimitiveArray
HeapPrimitiveArray¶
[jvm]\ class HeapPrimitiveArray : HeapObject
A primitive array in the heap dump.
Functions¶
Name | Summary |
---|---|
readRecord | [jvm] open override fun readRecord(): HprofRecord.HeapDumpRecord.ObjectRecord.PrimitiveArrayDumpRecord Reads and returns the underlying PrimitiveArrayDumpRecord. |
toString | [jvm] open override fun toString(): String |
Properties¶
Name | Summary |
---|---|
arrayClass | [jvm] val arrayClass: HeapObject.HeapClass The class of this array. |
arrayClassName | [jvm] val arrayClassName: String The name of the class of this array, identical to Class.getName. |
asClass | [jvm] val asClass: HeapObject.HeapClass? This HeapObject as a HeapClass if it is one, or null otherwise |
asInstance | [jvm] val asInstance: HeapObject.HeapInstance? This HeapObject as a HeapInstance if it is one, or null otherwise |
asObjectArray | [jvm] val asObjectArray: HeapObject.HeapObjectArray? This HeapObject as a HeapObjectArray if it is one, or null otherwise |
asPrimitiveArray | [jvm] val asPrimitiveArray: HeapObject.HeapPrimitiveArray? This HeapObject as a HeapPrimitiveArray if it is one, or null otherwise |
byteSize | [jvm] val byteSize: Int The total byte shallow size of elements in this array. |
graph | [jvm] open override val graph: HeapGraph The graph of objects in the heap, which you can use to navigate the heap. |
objectId | [jvm] open override val objectId: Long The heap identifier of this object. |
objectIndex | [jvm] 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 | [jvm] val positiveObjectId: Long objectId masked to be a positive unique identifier, as reported in Android Studio. |
primitiveType | [jvm] val primitiveType: PrimitiveType The PrimitiveType of elements in this array. |
recordSize | [jvm] open override val recordSize: Int The total byte size for the record of this object in the heap dump. |