Class HeapTracer
java.lang.Object
com.ibm.wala.util.heapTrace.HeapTracer
Simple utility that uses reflection to trace memory
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidstatic voidanalyzeLeaks(boolean traceStatics) Trace the heap and dump the output to the tracefilestatic voidperform()Trace the heap and return the resultsstatic HeapTracer.ResulttraceHeap(Collection<?> instances, boolean traceStatics) Trace the heap and dump the output to the tracefile
-
Constructor Details
-
HeapTracer
-
-
Method Details
-
main
-
perform
public HeapTracer.Result perform() throws ClassNotFoundException, IllegalArgumentException, IllegalAccessExceptionTrace the heap and return the results -
analyzeLeaks
public static void analyzeLeaks() -
analyzeLeaks
public static void analyzeLeaks(boolean traceStatics) Trace the heap and dump the output to the tracefile- Parameters:
traceStatics- should all static fields be considered roots?
-
traceHeap
@NullUnmarked public static HeapTracer.Result traceHeap(Collection<?> instances, boolean traceStatics) Trace the heap and dump the output to the tracefile- Parameters:
instances- instances to be considered roots of the heap traversaltraceStatics- should all static fields be considered roots?
-