Object Reporter
Enables ObjectInspector implementations to provide insights on heapObject, which is an object (class, instance or array) found in the heap.
A given ObjectReporter only maps to one object in the heap, but is shared to many ObjectInspector implementations and accumulates insights.
Constructors
ObjectReporter
Link copied to clipboard
Functions
when Instance Of
Link copied to clipboard
fun whenInstanceOf(expectedClassName: String, block: ObjectReporter.(HeapObject.HeapInstance) -> Unit)
Content copied to clipboard
Runs block if ObjectReporter.heapObject is an instance of expectedClassName.
fun whenInstanceOf(expectedClass: KClass<out Any>, block: ObjectReporter.(HeapObject.HeapInstance) -> Unit)
Content copied to clipboard
Runs block if ObjectReporter.heapObject is an instance of expectedClass.
Properties
heapObject
Link copied to clipboard
labels
Link copied to clipboard
Labels that will be visible on the corresponding heapObject in the leak trace.
leakingReasons
Link copied to clipboard
likelyLeakingReasons
Link copied to clipboard
notLeakingReasons
Link copied to clipboard