when Instance Of
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.
fun whenInstanceOf(expectedClassName: String, block: ObjectReporter.(HeapObject.HeapInstance) -> Unit)
Content copied to clipboard
Runs block if ObjectReporter.heapObject is an instance of expectedClassName.