//leakcanary-repo/shark/HeapObject/HeapObjectArray
HeapObjectArray¶
[jvm]\ class HeapObjectArray : HeapObject
An object array in the heap dump.
Functions¶
Name | Summary |
---|---|
readElements | [jvm] fun readElements(): Sequence<HeapValue> The elements in this array, as a sequence of HeapValue. |
readRecord | [jvm] open override fun readRecord(): HprofRecord.HeapDumpRecord.ObjectRecord.ObjectArrayDumpRecord Reads and returns the underlying ObjectArrayDumpRecord. |
toString | [jvm] open override fun toString(): String |
Properties¶
Name | Summary |
---|---|
arrayClass | [jvm] val arrayClass: HeapObject.HeapClass The class of this array. |
arrayClassId | [jvm] val arrayClassId: Long The heap identifier of the class of this array. |
arrayClassName | [jvm] val arrayClassName: String The name of the class of this array, identical to Class.getName. |
arrayClassSimpleName | [jvm] val arrayClassSimpleName: String Returns arrayClassName stripped of any string content before the last period (included). |
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. |
recordSize | [jvm] open override val recordSize: Int The total byte size for the record of this object in the heap dump. |