--- old/src/jdk.hotspot.agent/share/classes/sun/jvm/hotspot/SALauncher.java 2016-03-15 23:26:34.347860501 +0900 +++ new/src/jdk.hotspot.agent/share/classes/sun/jvm/hotspot/SALauncher.java 2016-03-15 23:26:34.192861168 +0900 @@ -88,7 +88,7 @@ } private static boolean jsnapHelp() { - System.out.println(" \tdump performance counters"); + System.out.println(" --all\tto print all performance counters"); return commonHelp(); } @@ -331,7 +331,7 @@ private static void runJSNAP(String[] oldArgs) { SAGetopt sg = new SAGetopt(oldArgs); - String[] longOpts = {"exe=", "core=", "pid="}; + String[] longOpts = {"exe=", "core=", "pid=", "all"}; ArrayList newArgs = new ArrayList(); String exe = null; @@ -352,6 +352,10 @@ pid = sg.getOptarg(); continue; } + if (s.equals("all")) { + newArgs.add("-a"); + continue; + } } buildAttachArgs(newArgs, pid, exe, core);