public final class HeapAnalyzer
extends java.lang.Object
RefWatcher to verify if suspected leaks are real.| Constructor and Description |
|---|
HeapAnalyzer(ExcludedRefs excludedRefs) |
HeapAnalyzer(ExcludedRefs baseExcludedRefs,
ExcludedRefs excludedRefs) |
| Modifier and Type | Method and Description |
|---|---|
AnalysisResult |
checkForLeak(java.io.File heapDumpFile,
java.lang.String referenceKey)
Searches the heap dump for a
KeyedWeakReference instance with the corresponding key,
and then computes the shortest strong reference path from that instance to the GC roots. |
public HeapAnalyzer(ExcludedRefs excludedRefs)
public HeapAnalyzer(ExcludedRefs baseExcludedRefs,
ExcludedRefs excludedRefs)
public AnalysisResult checkForLeak(java.io.File heapDumpFile, java.lang.String referenceKey)
KeyedWeakReference instance with the corresponding key,
and then computes the shortest strong reference path from that instance to the GC roots.