< prev index next >

src/jdk.hotspot.agent/share/classes/sun/jvm/hotspot/SALauncher.java

Print this page

        

*** 86,96 **** System.out.println(" --mixed\tto print both java and native frames (mixed mode)"); return commonHelp(); } private static boolean jsnapHelp() { ! System.out.println(" <no option>\tdump performance counters"); return commonHelp(); } private static boolean toolHelp(String toolName) { if (toolName.equals("jstack")) { --- 86,96 ---- System.out.println(" --mixed\tto print both java and native frames (mixed mode)"); return commonHelp(); } private static boolean jsnapHelp() { ! System.out.println(" --all\tto print all performance counters"); return commonHelp(); } private static boolean toolHelp(String toolName) { if (toolName.equals("jstack")) {
*** 329,339 **** JInfo.main(newArgs.toArray(new String[newArgs.size()])); } private static void runJSNAP(String[] oldArgs) { SAGetopt sg = new SAGetopt(oldArgs); ! String[] longOpts = {"exe=", "core=", "pid="}; ArrayList<String> newArgs = new ArrayList(); String exe = null; String pid = null; String core = null; --- 329,339 ---- JInfo.main(newArgs.toArray(new String[newArgs.size()])); } private static void runJSNAP(String[] oldArgs) { SAGetopt sg = new SAGetopt(oldArgs); ! String[] longOpts = {"exe=", "core=", "pid=", "all"}; ArrayList<String> newArgs = new ArrayList(); String exe = null; String pid = null; String core = null;
*** 350,359 **** --- 350,363 ---- } if (s.equals("pid")) { pid = sg.getOptarg(); continue; } + if (s.equals("all")) { + newArgs.add("-a"); + continue; + } } buildAttachArgs(newArgs, pid, exe, core); JSnap.main(newArgs.toArray(new String[newArgs.size()])); }
< prev index next >