Package shark
Types
Captures IO read metrics without using much memory.
Both a StreamingSourceProvider and a RandomAccessSourceProvider
A GcRoot as identified by HprofRecord.HeapDumpRecord.GcRootRecord in the heap dump.
Converts a Hprof file to another file with deobfuscated class and field names.
Represents the header metadata of a Hprof file.
Converts a Hprof file to another file with all primitive arrays replaced with arrays of zeroes, which can be useful to remove PII. Char arrays are handled slightly differently because 0 would be the null character so instead these become arrays of '?'.
A Hprof record. These data structure map 1:1 with how records are written in hprof files.
Reads hprof content from an Okio BufferedSource.
Supported hprof versions
Generates Hprof files.
Listener passed in to StreamingHprofReader.readRecords, gets notified for each HprofRecord found in the heap dump which types is in the set of the recordTypes parameter passed to StreamingHprofReader.readRecords.
Listener passed in to StreamingHprofReader.readRecords, gets notified for each HprofRecordTag found in the heap dump.
A primitive type in the prof.
Reads records in a Hprof source, one at a time with a specific position and size. Call openReaderFor to obtain a new instance.
Can open RandomAccessSource instances.
Reads the entire content of a Hprof source in one fell swoop. Call readerFor to obtain a new instance.
Wraps a StreamingHprofReader to provide a higher level API that streams HprofRecord instances.
Can open Source instances.
A DualSourceProvider that invokes throwIfCanceled before every read, allowing cancellation of IO based work built on top by throwing an exception.
A value in the heap dump, which can be a ReferenceHolder or a primitive type.