< prev index next >

test/jdk/jdk/jfr/jcmd/TestJcmdConfigure.java

Print this page
rev 51054 : imported patch 9000013-aixDisableJFR-requires.patch


  15  * accompanied this code).
  16  *
  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 
  26 package jdk.jfr.jcmd;
  27 
  28 import java.nio.file.Files;
  29 import java.util.ArrayList;
  30 import java.util.List;
  31 
  32 import jdk.jfr.internal.Options;
  33 import jdk.test.lib.Asserts;
  34 
  35 /*
  36  * @test
  37  * @summary The test verifies JFR.configure command
  38  * @key jfr

  39  * @library /test/lib /test/jdk
  40  * @modules jdk.jfr/jdk.jfr.internal
  41  * @run main/othervm jdk.jfr.jcmd.TestJcmdConfigure
  42  */
  43 public class TestJcmdConfigure {
  44 
  45     private static final String DUMPPATH = "dumppath";
  46     private static final String STACK_DEPTH = "stackdepth";
  47     private static final String GLOBAL_BUFFER_COUNT = "globalbuffercount";
  48     private static final String GLOBAL_BUFFER_SIZE = "globalbuffersize";
  49     private static final String THREAD_BUFFER_SIZE = "thread_buffer_size";
  50     private static final String MAX_CHUNK_SIZE = "maxchunksize";
  51     private static final String SAMPLE_THREADS = "samplethreads";
  52     private static final String UNSUPPORTED_OPTION = "unsupportedoption";
  53 
  54     public static void main(String[] args) throws Exception {
  55         //
  56         // Simple sanity tests against what is available in Java,
  57         // before Flight Recorder is loaded. To do:
  58         //




  15  * accompanied this code).
  16  *
  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 
  26 package jdk.jfr.jcmd;
  27 
  28 import java.nio.file.Files;
  29 import java.util.ArrayList;
  30 import java.util.List;
  31 
  32 import jdk.jfr.internal.Options;
  33 import jdk.test.lib.Asserts;
  34 
  35 /**
  36  * @test
  37  * @summary The test verifies JFR.configure command
  38  * @key jfr
  39  * @requires vm.hasJFR
  40  * @library /test/lib /test/jdk
  41  * @modules jdk.jfr/jdk.jfr.internal
  42  * @run main/othervm jdk.jfr.jcmd.TestJcmdConfigure
  43  */
  44 public class TestJcmdConfigure {
  45 
  46     private static final String DUMPPATH = "dumppath";
  47     private static final String STACK_DEPTH = "stackdepth";
  48     private static final String GLOBAL_BUFFER_COUNT = "globalbuffercount";
  49     private static final String GLOBAL_BUFFER_SIZE = "globalbuffersize";
  50     private static final String THREAD_BUFFER_SIZE = "thread_buffer_size";
  51     private static final String MAX_CHUNK_SIZE = "maxchunksize";
  52     private static final String SAMPLE_THREADS = "samplethreads";
  53     private static final String UNSUPPORTED_OPTION = "unsupportedoption";
  54 
  55     public static void main(String[] args) throws Exception {
  56         //
  57         // Simple sanity tests against what is available in Java,
  58         // before Flight Recorder is loaded. To do:
  59         //


< prev index next >