StreamingRecordReaderAdapter

Wraps a StreamingHprofReader to provide a higher level API that streams HprofRecord instances.

Constructors

Link copied to clipboard
constructor(streamingHprofReader: StreamingHprofReader)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
fun readRecords(recordTypes: Set<KClass<out HprofRecord>>, listener: OnHprofRecordListener): Long

Obtains a new source to read all hprof records from and calls listener back for each record that matches one of the provided recordTypes.