Class DumpHeap

java.lang.Object
org.plumelib.util.DumpHeap

public class DumpHeap extends Object
Defines a static method dumpHeap(java.lang.String) that dumps the heap to an .hprof file.
  • Method Details

    • dumpHeap

      public static void dumpHeap(String fileName)
      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

      public static void dumpHeap(String fileName, boolean live)
      Dumps a heap snapshot into a file.
      Parameters:
      fileName - file into which to dump a heap snapshot; is overwritten if it exists
      live - if true, dump only the live objects