jdk.jfr.internal.EventWriter Java Examples

The following examples show how to use jdk.jfr.internal.EventWriter. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: TestGetEventWriter.java    From dragonwell8_jdk with GNU General Public License v2.0 5 votes vote down vote up
public static void main(String... args) {
    JVM jvm = JVM.getJVM();
    jvm.createNativeJFR();
    EventWriter writer = EventWriter.getEventWriter();
    assertNotNull(writer, "EventWriter should not be null");
    jvm.destroyNativeJFR();
}
 
Example #2
Source File: TestGetEventWriter.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
public static void main(String... args) {
    JVM jvm = JVM.getJVM();
    jvm.createNativeJFR();
    EventWriter writer = EventWriter.getEventWriter();
    assertNotNull(writer, "EventWriter should not be null");
    jvm.destroyNativeJFR();
}
 
Example #3
Source File: TestGetEventWriter.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
public static void main(String... args) {
    JVM jvm = JVM.getJVM();
    jvm.createNativeJFR();
    EventWriter writer = EventWriter.getEventWriter();
    assertNotNull(writer, "EventWriter should not be null");
    jvm.destroyNativeJFR();
}