comparison agent/src/share/classes/sun/jvm/hotspot/tools/HeapDumper.java @ 11054:38ea2efa32a7

8010278: SA: provide mechanism for using an alternative SA debugger back-end. Reviewed-by: sla, dsamersoff
author kevinw
date Wed, 26 Jun 2013 00:01:20 +0100
parents c18cbe5936b8
children 7fe6ef09d242
comparison
equal deleted inserted replaced
11035:01e10b366055 11054:38ea2efa32a7
23 */ 23 */
24 24
25 package sun.jvm.hotspot.tools; 25 package sun.jvm.hotspot.tools;
26 26
27 import sun.jvm.hotspot.utilities.HeapHprofBinWriter; 27 import sun.jvm.hotspot.utilities.HeapHprofBinWriter;
28 import sun.jvm.hotspot.debugger.JVMDebugger;
28 import java.io.IOException; 29 import java.io.IOException;
29 30
30 /* 31 /*
31 * This tool is used by the JDK jmap utility to dump the heap of the target 32 * This tool is used by the JDK jmap utility to dump the heap of the target
32 * process/core as a HPROF binary file. It can also be used as a standalone 33 * process/core as a HPROF binary file. It can also be used as a standalone
37 private static String DEFAULT_DUMP_FILE = "heap.bin"; 38 private static String DEFAULT_DUMP_FILE = "heap.bin";
38 39
39 private String dumpFile; 40 private String dumpFile;
40 41
41 public HeapDumper(String dumpFile) { 42 public HeapDumper(String dumpFile) {
43 this.dumpFile = dumpFile;
44 }
45
46 public HeapDumper(String dumpFile, JVMDebugger d) {
47 super(d);
42 this.dumpFile = dumpFile; 48 this.dumpFile = dumpFile;
43 } 49 }
44 50
45 protected void printFlagsUsage() { 51 protected void printFlagsUsage() {
46 System.out.println(" <no option>\tto dump heap to " + 52 System.out.println(" <no option>\tto dump heap to " +