shark-hprof / shark / OnHprofRecordListener

OnHprofRecordListener

interface OnHprofRecordListener

Listener passed in to HprofReader.readHprofRecords, gets notified for each HprofRecord found in the heap dump which types is in the set of the recordTypes parameter passed to HprofReader.readHprofRecords.

Functions

NameSummary
onHprofRecordabstract fun onHprofRecord(position: Long, record: HprofRecord): Unit

Companion Object Functions

NameSummary
invokeoperator fun invoke(block: (Long, HprofRecord) -> Unit): OnHprofRecordListener
Utility function to create a OnHprofRecordListener from the passed in [block](invoke.md#shark.OnHprofRecordListener.Companion$invoke(kotlin.Function2((kotlin.Long, shark.HprofRecord, kotlin.Unit)))/block) lambda instead of using the anonymous object : OnHprofRecordListener syntax.