Skip to content
🤔 Documentation issue? Report it

//leakcanary/shark/StreamingRecordReaderAdapter

StreamingRecordReaderAdapter

class StreamingRecordReaderAdapter(streamingHprofReader: StreamingHprofReader)

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

Constructors

StreamingRecordReaderAdapter fun StreamingRecordReaderAdapter(streamingHprofReader: StreamingHprofReader)

Types

Name Summary
Companion object Companion

Functions

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