whenInstanceOf

fun whenInstanceOf(expectedClass: KClass<out Any>, block: ObjectReporter.(HeapObject.HeapInstance) -> Unit)

Runs block if ObjectReporter.heapObject is an instance of expectedClass.


fun whenInstanceOf(expectedClassName: String, block: ObjectReporter.(HeapObject.HeapInstance) -> Unit)

Runs block if ObjectReporter.heapObject is an instance of expectedClassName.