53 private static final Path jfrTestRoot = Paths.get(Utils.TEST_SRC).getParent().getParent();
54 private static final String MSG_SEPARATOR = "==========================";
55 private static Set<String> jfrEventTypes = new HashSet<>();
56
57 private static final Set<String> hardToTestEvents = new HashSet<>(
58 Arrays.asList(
59 "DataLoss", "IntFlag", "ReservedStackActivation",
60 "DoubleFlag", "UnsignedLongFlagChanged", "IntFlagChanged",
61 "UnsignedIntFlag", "UnsignedIntFlagChanged", "DoubleFlagChanged")
62 );
63
64 // GC uses specific framework to test the events, instead of using event names literally.
65 // GC tests were inspected, as well as runtime output of GC tests.
66 // The following events below are know to be covered based on that inspection.
67 private static final Set<String> coveredGcEvents = new HashSet<>(
68 Arrays.asList(
69 "MetaspaceGCThreshold", "MetaspaceAllocationFailure", "MetaspaceOOM",
70 "MetaspaceChunkFreeListSummary", "G1HeapSummary", "ParallelOldGarbageCollection",
71 "OldGarbageCollection", "G1GarbageCollection", "GCPhasePause",
72 "GCPhasePauseLevel1", "GCPhasePauseLevel2", "GCPhasePauseLevel3",
73 "GCPhasePauseLevel4", "GCPhaseConcurrent")
74 );
75
76 // This is a "known failure list" for this test.
77 // NOTE: if the event is not covered, a bug should be open, and bug number
78 // noted in the comments for this set.
79 private static final Set<String> knownNotCoveredEvents = new HashSet<>(
80 );
81
82 // Experimental events
83 private static final Set<String> experimentalEvents = new HashSet<>(
84 Arrays.asList("Flush")
85 );
86
87
88 public static void main(String[] args) throws Exception {
89 for (EventType type : FlightRecorder.getFlightRecorder().getEventTypes()) {
90 if (type.getAnnotation(Experimental.class) == null) {
91 jfrEventTypes.add(type.getName().replace("jdk.", ""));
92 }
93 }
|
53 private static final Path jfrTestRoot = Paths.get(Utils.TEST_SRC).getParent().getParent();
54 private static final String MSG_SEPARATOR = "==========================";
55 private static Set<String> jfrEventTypes = new HashSet<>();
56
57 private static final Set<String> hardToTestEvents = new HashSet<>(
58 Arrays.asList(
59 "DataLoss", "IntFlag", "ReservedStackActivation",
60 "DoubleFlag", "UnsignedLongFlagChanged", "IntFlagChanged",
61 "UnsignedIntFlag", "UnsignedIntFlagChanged", "DoubleFlagChanged")
62 );
63
64 // GC uses specific framework to test the events, instead of using event names literally.
65 // GC tests were inspected, as well as runtime output of GC tests.
66 // The following events below are know to be covered based on that inspection.
67 private static final Set<String> coveredGcEvents = new HashSet<>(
68 Arrays.asList(
69 "MetaspaceGCThreshold", "MetaspaceAllocationFailure", "MetaspaceOOM",
70 "MetaspaceChunkFreeListSummary", "G1HeapSummary", "ParallelOldGarbageCollection",
71 "OldGarbageCollection", "G1GarbageCollection", "GCPhasePause",
72 "GCPhasePauseLevel1", "GCPhasePauseLevel2", "GCPhasePauseLevel3",
73 "GCPhasePauseLevel4", "GCPhaseConcurrent", "GCPhaseConcurrentLevel1")
74 );
75
76 // This is a "known failure list" for this test.
77 // NOTE: if the event is not covered, a bug should be open, and bug number
78 // noted in the comments for this set.
79 private static final Set<String> knownNotCoveredEvents = new HashSet<>(
80 );
81
82 // Experimental events
83 private static final Set<String> experimentalEvents = new HashSet<>(
84 Arrays.asList("Flush")
85 );
86
87
88 public static void main(String[] args) throws Exception {
89 for (EventType type : FlightRecorder.getFlightRecorder().getEventTypes()) {
90 if (type.getAnnotation(Experimental.class) == null) {
91 jfrEventTypes.add(type.getName().replace("jdk.", ""));
92 }
93 }
|