//leakcanary-repo/shark/StreamingRecordReaderAdapter
StreamingRecordReaderAdapter¶
[jvm]\ class StreamingRecordReaderAdapter(streamingHprofReader: StreamingHprofReader)
Wraps a StreamingHprofReader to provide a higher level API that streams HprofRecord instances.
Constructors¶
StreamingRecordReaderAdapter | [jvm] constructor(streamingHprofReader: StreamingHprofReader) |
Types¶
Name | Summary |
---|---|
Companion | [jvm] object Companion |
Functions¶
Name | Summary |
---|---|
readRecords | [jvm] 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. |