Streaming Record Reader Adapter
class StreamingRecordReaderAdapter(streamingHprofReader: StreamingHprofReader)
Content copied to clipboard
Wraps a StreamingHprofReader to provide a higher level API that streams HprofRecord instances.
Constructors
Link copied to clipboard
fun StreamingRecordReaderAdapter(streamingHprofReader: StreamingHprofReader)
Content copied to clipboard
Types
Functions
Link copied to clipboard
fun readRecords(recordTypes: Set<KClass<out HprofRecord>>, listener: OnHprofRecordListener): Long
Content copied to clipboard
Obtains a new source to read all hprof records from and calls listener back for each record that matches one of the provided recordTypes.