StreamingRecordReaderAdapter

class StreamingRecordReaderAdapter(streamingHprofReader: StreamingHprofReader)

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

Constructors

StreamingRecordReaderAdapter
Link copied to clipboard
fun StreamingRecordReaderAdapter(streamingHprofReader: StreamingHprofReader)

Types

Companion
Link copied to clipboard
object Companion

Functions

readRecords
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.