shark-hprof / shark / 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.
Name | Summary |
---|---|
onHprofRecord | abstract fun onHprofRecord(position: Long , record: HprofRecord ): Unit |
Name | Summary |
---|---|
invoke | operator 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. |