< prev index next >

test/jdk/jdk/jfr/jcmd/TestJcmdDumpLimited.java

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


  26 package jdk.jfr.jcmd;
  27 
  28 import java.io.IOException;
  29 import java.nio.file.Files;
  30 import java.nio.file.Path;
  31 import java.nio.file.Paths;
  32 import java.time.Duration;
  33 import java.time.Instant;
  34 import java.time.LocalDateTime;
  35 import java.time.LocalTime;
  36 import java.time.ZoneOffset;
  37 import java.util.ArrayList;
  38 import java.util.Collections;
  39 import java.util.List;
  40 
  41 import jdk.jfr.Event;
  42 import jdk.jfr.Recording;
  43 import jdk.test.lib.Asserts;
  44 import jdk.test.lib.process.OutputAnalyzer;
  45 
  46 /*
  47  * @test
  48  * @summary The test verifies JFR.dump command
  49  * @key jfr

  50  * @library /test/lib /test/jdk
  51  * @run main/othervm jdk.jfr.jcmd.TestJcmdDumpLimited
  52  */
  53 public class TestJcmdDumpLimited {
  54 
  55     static class TestEvent extends Event {
  56         int id;
  57         int number;
  58     }
  59 
  60     static class TestRecording {
  61         Instant time;
  62         final Recording r;
  63         Path path;
  64         int size;
  65         int total;
  66         int id;
  67         Instant now;
  68 
  69         TestRecording(int id, int events) throws IOException, InterruptedException {




  26 package jdk.jfr.jcmd;
  27 
  28 import java.io.IOException;
  29 import java.nio.file.Files;
  30 import java.nio.file.Path;
  31 import java.nio.file.Paths;
  32 import java.time.Duration;
  33 import java.time.Instant;
  34 import java.time.LocalDateTime;
  35 import java.time.LocalTime;
  36 import java.time.ZoneOffset;
  37 import java.util.ArrayList;
  38 import java.util.Collections;
  39 import java.util.List;
  40 
  41 import jdk.jfr.Event;
  42 import jdk.jfr.Recording;
  43 import jdk.test.lib.Asserts;
  44 import jdk.test.lib.process.OutputAnalyzer;
  45 
  46 /**
  47  * @test
  48  * @summary The test verifies JFR.dump command
  49  * @key jfr
  50  * @requires vm.hasJFR
  51  * @library /test/lib /test/jdk
  52  * @run main/othervm jdk.jfr.jcmd.TestJcmdDumpLimited
  53  */
  54 public class TestJcmdDumpLimited {
  55 
  56     static class TestEvent extends Event {
  57         int id;
  58         int number;
  59     }
  60 
  61     static class TestRecording {
  62         Instant time;
  63         final Recording r;
  64         Path path;
  65         int size;
  66         int total;
  67         int id;
  68         Instant now;
  69 
  70         TestRecording(int id, int events) throws IOException, InterruptedException {


< prev index next >