Package-level declarations

Types

Link copied to clipboard
Link copied to clipboard

Captures IO read metrics without using much memory.

Link copied to clipboard
Link copied to clipboard
sealed class GcRoot

A GcRoot as identified by HprofRecord.HeapDumpRecord.GcRootRecord in the heap dump.

Link copied to clipboard

Converts a Hprof file to another file with deobfuscated class and field names.

Link copied to clipboard
data class HprofHeader(val heapDumpTimestamp: Long = System.currentTimeMillis(), val version: HprofVersion = HprofVersion.ANDROID, val identifierByteSize: Int = 4)

Represents the header metadata of a Hprof file.

Link copied to clipboard

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 '?'.

Link copied to clipboard
sealed class HprofRecord

A Hprof record. These data structure map 1:1 with how records are written in hprof files.

Link copied to clipboard

Reads hprof content from an Okio BufferedSource.

Link copied to clipboard
Link copied to clipboard

Supported hprof versions

Link copied to clipboard

Generates Hprof files.

Link copied to clipboard
fun interface OnHprofRecordListener

Listener passed in to StreamingRecordReaderAdapter.readRecords, gets notified for each HprofRecord found in the heap dump which types is in the set of the recordTypes parameter passed to StreamingRecordReaderAdapter.readRecords.

Link copied to clipboard

Listener passed in to StreamingHprofReader.readRecords, gets notified for each HprofRecordTag found in the heap dump.

Link copied to clipboard

A primitive type in the prof.

Link copied to clipboard
Link copied to clipboard
class ProguardMappingReader(proguardMappingInputStream: InputStream)
Link copied to clipboard

Reads records in a Hprof source, one at a time with a specific position and size. Call openReaderFor to obtain a new instance.

Link copied to clipboard
Link copied to clipboard

Can open RandomAccessSource instances.

Link copied to clipboard

Reads the entire content of a Hprof source in one fell swoop. Call readerFor to obtain a new instance.

Link copied to clipboard

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

Link copied to clipboard

Can open Source instances.

Link copied to clipboard

A DualSourceProvider that invokes throwIfCanceled before every read, allowing cancellation of IO based work built on top by throwing an exception.

Link copied to clipboard
sealed class ValueHolder

A value in the heap dump, which can be a ReferenceHolder or a primitive type.