Skip to content

Comment on JEP 349: JFR Event Streaming Targeted (Java)

Comments

In JDK 14, Flight Recorder events will be available for monitoring.

   try (var rs = new RecordingStream()) {
     rs.onEvent("jdk.GCPhasePause", event -> {
       System.out.println(event.getDuration());
     });
   }
AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.