invoke

inline operator fun invoke(crossinline block: (ObjectReporter) -> Unit): ObjectInspector

Utility function to create a ObjectInspector from the passed in block lambda instead of using the anonymous object : OnHeapAnalyzedListener syntax.

Usage:

val inspector = ObjectInspector { reporter ->

}