Class JfrInstrumentation
java.lang.Object
de.cuioss.benchmarking.common.jfr.JfrInstrumentation
Central management for JFR instrumentation in benchmarks.
Provides utilities for recording events and computing statistics.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassHelper class for recording individual operations. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionrecordOperation(String benchmarkName, String operationType) Records the start of a benchmark operation.voidrecordPhase(String benchmarkName, String phase, int iteration, int totalIterations, int fork, int threadCount) Records a benchmark phase transition.voidshutdown()Shuts down the instrumentation and releases resources.
-
Constructor Details
-
JfrInstrumentation
public JfrInstrumentation()
-
-
Method Details
-
recordOperation
public JfrInstrumentation.OperationRecorder recordOperation(String benchmarkName, String operationType) Records the start of a benchmark operation.- Returns:
- an AutoCloseable that should be used in try-with-resources to ensure proper event completion
-
recordPhase
public void recordPhase(String benchmarkName, String phase, int iteration, int totalIterations, int fork, int threadCount) Records a benchmark phase transition. -
shutdown
Shuts down the instrumentation and releases resources.
-