public final class HeapAnalyzer
extends java.lang.Object
RefWatcher to verify if suspected leaks are real.| Constructor and Description |
|---|
HeapAnalyzer(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. |
java.util.List<TrackedReference> |
findTrackedReferences(java.io.File heapDumpFile) |
public java.util.List<TrackedReference> findTrackedReferences(java.io.File heapDumpFile)
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.