< prev index next >

test/jdk/jdk/jfr/jvm/TestJavaEvent.java

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


  23  * questions.
  24  */
  25 
  26 package jdk.jfr.jvm;
  27 
  28 import java.io.File;
  29 import java.io.IOException;
  30 import java.time.Duration;
  31 import java.util.ArrayList;
  32 import java.util.List;
  33 
  34 import jdk.jfr.AnnotationElement;
  35 import jdk.jfr.Event;
  36 import jdk.jfr.EventType;
  37 import jdk.jfr.FlightRecorder;
  38 import jdk.jfr.Recording;
  39 import jdk.jfr.ValueDescriptor;
  40 import jdk.jfr.consumer.RecordedEvent;
  41 import jdk.jfr.consumer.RecordingFile;
  42 
  43 /*
  44  * @test TestGetThreadId
  45  * @key jfr

  46  * @library /test/lib
  47  * @modules jdk.jfr/jdk.jfr.internal
  48  * @run main/othervm jdk.jfr.jvm.TestJavaEvent
  49  */
  50 public class TestJavaEvent {
  51 
  52     private static final int EVENTS_PER_THREAD = 50;
  53     private static final int THREAD_COUNT = 100;
  54 
  55     public static class MyEvent extends Event {
  56         float floatValue;
  57         double doubleValue;
  58         int intValue;
  59         long longValue;
  60         char charValue;
  61         byte byteValue;
  62         String stringValue;
  63         Thread threadValue;
  64         Class<?> classValue;
  65 




  23  * questions.
  24  */
  25 
  26 package jdk.jfr.jvm;
  27 
  28 import java.io.File;
  29 import java.io.IOException;
  30 import java.time.Duration;
  31 import java.util.ArrayList;
  32 import java.util.List;
  33 
  34 import jdk.jfr.AnnotationElement;
  35 import jdk.jfr.Event;
  36 import jdk.jfr.EventType;
  37 import jdk.jfr.FlightRecorder;
  38 import jdk.jfr.Recording;
  39 import jdk.jfr.ValueDescriptor;
  40 import jdk.jfr.consumer.RecordedEvent;
  41 import jdk.jfr.consumer.RecordingFile;
  42 
  43 /**
  44  * @test TestGetThreadId
  45  * @key jfr
  46  * @requires vm.hasJFR
  47  * @library /test/lib
  48  * @modules jdk.jfr/jdk.jfr.internal
  49  * @run main/othervm jdk.jfr.jvm.TestJavaEvent
  50  */
  51 public class TestJavaEvent {
  52 
  53     private static final int EVENTS_PER_THREAD = 50;
  54     private static final int THREAD_COUNT = 100;
  55 
  56     public static class MyEvent extends Event {
  57         float floatValue;
  58         double doubleValue;
  59         int intValue;
  60         long longValue;
  61         char charValue;
  62         byte byteValue;
  63         String stringValue;
  64         Thread threadValue;
  65         Class<?> classValue;
  66 


< prev index next >