< prev index next >

src/jdk.jfr/share/classes/jdk/jfr/internal/instrument/JDKEvents.java

Print this page

 33 import jdk.jfr.events.ActiveRecordingEvent;
 34 import jdk.jfr.events.ActiveSettingEvent;
 35 import jdk.jfr.events.ContainerIOUsageEvent;
 36 import jdk.jfr.events.ContainerConfigurationEvent;
 37 import jdk.jfr.events.ContainerCPUUsageEvent;
 38 import jdk.jfr.events.ContainerCPUThrottlingEvent;
 39 import jdk.jfr.events.ContainerMemoryUsageEvent;
 40 import jdk.jfr.events.DirectBufferStatisticsEvent;
 41 import jdk.jfr.events.ErrorThrownEvent;
 42 import jdk.jfr.events.ExceptionStatisticsEvent;
 43 import jdk.jfr.events.ExceptionThrownEvent;
 44 import jdk.jfr.events.FileForceEvent;
 45 import jdk.jfr.events.FileReadEvent;
 46 import jdk.jfr.events.FileWriteEvent;
 47 import jdk.jfr.events.DeserializationEvent;
 48 import jdk.jfr.events.ProcessStartEvent;
 49 import jdk.jfr.events.SecurityPropertyModificationEvent;
 50 import jdk.jfr.events.SocketReadEvent;
 51 import jdk.jfr.events.SocketWriteEvent;
 52 import jdk.jfr.events.TLSHandshakeEvent;





 53 import jdk.jfr.events.X509CertificateEvent;
 54 import jdk.jfr.events.X509ValidationEvent;
 55 import jdk.jfr.internal.JVM;
 56 import jdk.jfr.internal.LogLevel;
 57 import jdk.jfr.internal.LogTag;
 58 import jdk.jfr.internal.Logger;
 59 import jdk.jfr.internal.RequestEngine;
 60 import jdk.jfr.internal.SecuritySupport;
 61 
 62 import jdk.internal.platform.Container;
 63 import jdk.internal.platform.Metrics;
 64 
 65 public final class JDKEvents {
 66     private static final Class<?>[] mirrorEventClasses = {
 67         DeserializationEvent.class,
 68         ProcessStartEvent.class,
 69         SecurityPropertyModificationEvent.class,

 70         TLSHandshakeEvent.class,




 71         X509CertificateEvent.class,
 72         X509ValidationEvent.class
 73     };
 74 
 75     private static final Class<?>[] eventClasses = {
 76         FileForceEvent.class,
 77         FileReadEvent.class,
 78         FileWriteEvent.class,
 79         SocketReadEvent.class,
 80         SocketWriteEvent.class,
 81         ExceptionThrownEvent.class,
 82         ExceptionStatisticsEvent.class,
 83         ErrorThrownEvent.class,
 84         ActiveSettingEvent.class,
 85         ActiveRecordingEvent.class,
 86         jdk.internal.event.DeserializationEvent.class,
 87         jdk.internal.event.ProcessStartEvent.class,
 88         jdk.internal.event.SecurityPropertyModificationEvent.class,

 89         jdk.internal.event.TLSHandshakeEvent.class,




 90         jdk.internal.event.X509CertificateEvent.class,
 91         jdk.internal.event.X509ValidationEvent.class,
 92 
 93         DirectBufferStatisticsEvent.class
 94     };
 95 
 96     // This is a list of the classes with instrumentation code that should be applied.
 97     private static final Class<?>[] instrumentationClasses = new Class<?>[] {
 98         FileInputStreamInstrumentor.class,
 99         FileOutputStreamInstrumentor.class,
100         RandomAccessFileInstrumentor.class,
101         FileChannelImplInstrumentor.class,
102         SocketInputStreamInstrumentor.class,
103         SocketOutputStreamInstrumentor.class,
104         SocketChannelImplInstrumentor.class
105     };
106 
107     private static final Class<?>[] targetClasses = new Class<?>[instrumentationClasses.length];
108     private static final JVM jvm = JVM.getJVM();
109     private static final Runnable emitExceptionStatistics = JDKEvents::emitExceptionStatistics;

 33 import jdk.jfr.events.ActiveRecordingEvent;
 34 import jdk.jfr.events.ActiveSettingEvent;
 35 import jdk.jfr.events.ContainerIOUsageEvent;
 36 import jdk.jfr.events.ContainerConfigurationEvent;
 37 import jdk.jfr.events.ContainerCPUUsageEvent;
 38 import jdk.jfr.events.ContainerCPUThrottlingEvent;
 39 import jdk.jfr.events.ContainerMemoryUsageEvent;
 40 import jdk.jfr.events.DirectBufferStatisticsEvent;
 41 import jdk.jfr.events.ErrorThrownEvent;
 42 import jdk.jfr.events.ExceptionStatisticsEvent;
 43 import jdk.jfr.events.ExceptionThrownEvent;
 44 import jdk.jfr.events.FileForceEvent;
 45 import jdk.jfr.events.FileReadEvent;
 46 import jdk.jfr.events.FileWriteEvent;
 47 import jdk.jfr.events.DeserializationEvent;
 48 import jdk.jfr.events.ProcessStartEvent;
 49 import jdk.jfr.events.SecurityPropertyModificationEvent;
 50 import jdk.jfr.events.SocketReadEvent;
 51 import jdk.jfr.events.SocketWriteEvent;
 52 import jdk.jfr.events.TLSHandshakeEvent;
 53 import jdk.jfr.events.ThreadSleepEvent;
 54 import jdk.jfr.events.VirtualThreadStartEvent;
 55 import jdk.jfr.events.VirtualThreadEndEvent;
 56 import jdk.jfr.events.VirtualThreadPinnedEvent;
 57 import jdk.jfr.events.VirtualThreadSubmitFailedEvent;
 58 import jdk.jfr.events.X509CertificateEvent;
 59 import jdk.jfr.events.X509ValidationEvent;
 60 import jdk.jfr.internal.JVM;
 61 import jdk.jfr.internal.LogLevel;
 62 import jdk.jfr.internal.LogTag;
 63 import jdk.jfr.internal.Logger;
 64 import jdk.jfr.internal.RequestEngine;
 65 import jdk.jfr.internal.SecuritySupport;
 66 
 67 import jdk.internal.platform.Container;
 68 import jdk.internal.platform.Metrics;
 69 
 70 public final class JDKEvents {
 71     private static final Class<?>[] mirrorEventClasses = {
 72         DeserializationEvent.class,
 73         ProcessStartEvent.class,
 74         SecurityPropertyModificationEvent.class,
 75         ThreadSleepEvent.class,
 76         TLSHandshakeEvent.class,
 77         VirtualThreadStartEvent.class,
 78         VirtualThreadEndEvent.class,
 79         VirtualThreadPinnedEvent.class,
 80         VirtualThreadSubmitFailedEvent.class,
 81         X509CertificateEvent.class,
 82         X509ValidationEvent.class
 83     };
 84 
 85     private static final Class<?>[] eventClasses = {
 86         FileForceEvent.class,
 87         FileReadEvent.class,
 88         FileWriteEvent.class,
 89         SocketReadEvent.class,
 90         SocketWriteEvent.class,
 91         ExceptionThrownEvent.class,
 92         ExceptionStatisticsEvent.class,
 93         ErrorThrownEvent.class,
 94         ActiveSettingEvent.class,
 95         ActiveRecordingEvent.class,
 96         jdk.internal.event.DeserializationEvent.class,
 97         jdk.internal.event.ProcessStartEvent.class,
 98         jdk.internal.event.SecurityPropertyModificationEvent.class,
 99         jdk.internal.event.ThreadSleepEvent.class,
100         jdk.internal.event.TLSHandshakeEvent.class,
101         jdk.internal.event.VirtualThreadStartEvent.class,
102         jdk.internal.event.VirtualThreadEndEvent.class,
103         jdk.internal.event.VirtualThreadPinnedEvent.class,
104         jdk.internal.event.VirtualThreadSubmitFailedEvent.class,
105         jdk.internal.event.X509CertificateEvent.class,
106         jdk.internal.event.X509ValidationEvent.class,
107 
108         DirectBufferStatisticsEvent.class
109     };
110 
111     // This is a list of the classes with instrumentation code that should be applied.
112     private static final Class<?>[] instrumentationClasses = new Class<?>[] {
113         FileInputStreamInstrumentor.class,
114         FileOutputStreamInstrumentor.class,
115         RandomAccessFileInstrumentor.class,
116         FileChannelImplInstrumentor.class,
117         SocketInputStreamInstrumentor.class,
118         SocketOutputStreamInstrumentor.class,
119         SocketChannelImplInstrumentor.class
120     };
121 
122     private static final Class<?>[] targetClasses = new Class<?>[instrumentationClasses.length];
123     private static final JVM jvm = JVM.getJVM();
124     private static final Runnable emitExceptionStatistics = JDKEvents::emitExceptionStatistics;
< prev index next >