public class HeapTracer extends Object
Modifier and Type | Class and Description |
---|---|
class |
HeapTracer.Result |
Constructor and Description |
---|
HeapTracer(Collection<?> c,
boolean traceStatics) |
Modifier and Type | Method and Description |
---|---|
static void |
analyzeLeaks() |
static void |
analyzeLeaks(boolean traceStatics)
Trace the heap and dump the output to the tracefile
|
static void |
main(String[] args) |
HeapTracer.Result |
perform()
Trace the heap and return the results
|
static HeapTracer.Result |
traceHeap(Collection<?> instances,
boolean traceStatics)
Trace the heap and dump the output to the tracefile
|
public HeapTracer(Collection<?> c, boolean traceStatics)
c
- traceStatics
- public static void main(String[] args)
args
- public HeapTracer.Result perform() throws ClassNotFoundException, IllegalArgumentException, IllegalAccessException
public static void analyzeLeaks()
public static void analyzeLeaks(boolean traceStatics)
traceStatics
- should all static fields be considered roots?public static HeapTracer.Result traceHeap(Collection<?> instances, boolean traceStatics)
instances
- instances to be considered roots of the heap traversaltraceStatics
- should all static fields be considered roots?