HeapObjectArray

An object array in the heap dump.

Functions

Link copied to clipboard

The elements in this array, as a sequence of HeapValue.

Link copied to clipboard
open override fun readRecord(): HprofRecord.HeapDumpRecord.ObjectRecord.ObjectArrayDumpRecord

Reads and returns the underlying ObjectArrayDumpRecord.

Link copied to clipboard
open override fun toString(): String

Properties

Link copied to clipboard

The class of this array.

Link copied to clipboard

The heap identifier of the class of this array.

Link copied to clipboard

The name of the class of this array, identical to Class.getName.

Link copied to clipboard

Returns arrayClassName stripped of any string content before the last period (included).

Link copied to clipboard

This HeapObject as a HeapClass if it is one, or null otherwise

Link copied to clipboard

This HeapObject as a HeapInstance if it is one, or null otherwise

Link copied to clipboard

This HeapObject as a HeapObjectArray if it is one, or null otherwise

Link copied to clipboard

This HeapObject as a HeapPrimitiveArray if it is one, or null otherwise

Link copied to clipboard

The total byte shallow size of elements in this array.

Link copied to clipboard
open override val graph: HeapGraph

The graph of objects in the heap, which you can use to navigate the heap.

Link copied to clipboard
open override val objectId: Long

The heap identifier of this object.

Link copied to clipboard
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.

Link copied to clipboard

objectId masked to be a positive unique identifier, as reported in Android Studio.

Link copied to clipboard
open override val recordSize: Int

The total byte size for the record of this object in the heap dump.