//shark-hprof/shark/StreamingRecordReaderAdapter/readRecords

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.

Return

the number of bytes read from the source