Package com.helix.profiler.jfr
Class JfrRecordingManager
java.lang.Object
com.helix.profiler.jfr.JfrRecordingManager
Manager for managing JDK Flight Recorder (JFR) recording sessions programmatically.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()voiddumpRecording(Path destination) Dumps the recorded JFR events to the specified file.booleanvoidstartRecording(String recordingName) Starts a new JFR recording session.voidStops the active JFR recording session.
-
Constructor Details
-
JfrRecordingManager
public JfrRecordingManager()
-
-
Method Details
-
startRecording
Starts a new JFR recording session. -
stopRecording
public void stopRecording()Stops the active JFR recording session. -
dumpRecording
Dumps the recorded JFR events to the specified file.- Throws:
IOException
-
isRecording
public boolean isRecording() -
close
public void close()
-