shark-hprof / shark / StreamingRecordReaderAdapter
class StreamingRecordReaderAdapter
Wraps a StreamingHprofReader to provide a higher level API that streams HprofRecord instances.
Name | Summary |
---|---|
<init> | StreamingRecordReaderAdapter(streamingHprofReader: StreamingHprofReader ) Wraps a StreamingHprofReader to provide a higher level API that streams HprofRecord instances. |
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](read-records.md#shark.StreamingRecordReaderAdapter$readRecords(kotlin.collections.Set((kotlin.reflect.KClass((shark.HprofRecord)))), shark.OnHprofRecordListener)/listener) back for each record that matches one of the provided [recordTypes](read-records.md#shark.StreamingRecordReaderAdapter$readRecords(kotlin.collections.Set((kotlin.reflect.KClass((shark.HprofRecord)))), shark.OnHprofRecordListener)/recordTypes). |
Name | Summary |
---|---|
asHprofTags | fun Set < KClass <out HprofRecord >>.asHprofTags(): EnumSet < HprofRecordTag > |
asStreamingRecordReader | fun StreamingHprofReader .asStreamingRecordReader(): StreamingRecordReaderAdapter |