Package org.plumelib.util
Class DumpHeap
java.lang.Object
org.plumelib.util.DumpHeap
Defines a static method
dumpHeap(java.lang.String)
that dumps the heap to an .hprof file.-
Method Summary
-
Method Details
-
dumpHeap
Dumps a heap snapshot (of only the live objects) into a file.- Parameters:
fileName
- file into which to dump a heap snapshot; is overwritten if it exists
-
dumpHeap
Dumps a heap snapshot into a file.- Parameters:
fileName
- file into which to dump a heap snapshot; is overwritten if it existslive
- if true, dump only the live objects
-