Class JfrInstrumentation

java.lang.Object
de.cuioss.benchmarking.common.jfr.JfrInstrumentation

public class JfrInstrumentation extends Object
Central management for JFR instrumentation in benchmarks. Provides utilities for recording events and computing statistics.
  • Constructor Details

  • 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

      public void shutdown()
      Shuts down the instrumentation and releases resources.