HeapAnalyzer

class HeapAnalyzer(listener: OnAnalysisProgressListener)

Analyzes heap dumps to look for leaks.

Constructors

HeapAnalyzer
Link copied to clipboard
fun HeapAnalyzer(listener: OnAnalysisProgressListener)

Functions

analyze
Link copied to clipboard
fun analyze(heapDumpFile: File, graph: HeapGraph, leakingObjectFinder: LeakingObjectFinder, referenceMatchers: List<ReferenceMatcher> = emptyList(), computeRetainedHeapSize: Boolean = false, objectInspectors: List<ObjectInspector> = emptyList(), metadataExtractor: MetadataExtractor = MetadataExtractor.NO_OP): HeapAnalysis

Searches the heap dump for leaking instances and then computes the shortest strong reference path from those instances to the GC roots.

fun analyze(heapDumpFile: File, leakingObjectFinder: LeakingObjectFinder, referenceMatchers: List<ReferenceMatcher> = emptyList(), computeRetainedHeapSize: Boolean = false, objectInspectors: List<ObjectInspector> = emptyList(), metadataExtractor: MetadataExtractor = MetadataExtractor.NO_OP, proguardMapping: ProguardMapping? = null): HeapAnalysis