JFR tests call Event.from(recording) to get the events from recording.
Problem is that each call to Events.from(recording) dumps a recording file, inducing a JVM safepoint and executes parsing of the file. A better approach is to store the event in a List instead of calling it twice, or more.
Problem is that each call to Events.from(recording) dumps a recording file, inducing a JVM safepoint and executes parsing of the file. A better approach is to store the event in a List instead of calling it twice, or more.