Interface InternalProfiler

All Superinterfaces:
Profiler
All Known Implementing Classes:
AsyncProfiler, ClassloaderProfiler, CompilerProfiler, GCProfiler, JavaFlightRecorderProfiler, PausesProfiler, StackProfiler

public interface InternalProfiler extends Profiler
Internal profiler.

Internal profilers run in the benchmark JVM, and may query the internal JVM facilities.

  • Method Details

    • beforeIteration

      void beforeIteration(BenchmarkParams benchmarkParams, IterationParams iterationParams)
      Run this code before starting the next benchmark iteration.
      Parameters:
      benchmarkParams - benchmark parameters used for current launch
      iterationParams - iteration parameters used for current launch
    • afterIteration

      Collection<? extends Result> afterIteration(BenchmarkParams benchmarkParams, IterationParams iterationParams, IterationResult result)
      Run this code after a benchmark iteration finished
      Parameters:
      benchmarkParams - benchmark parameters used for current launch
      iterationParams - iteration parameters used for current launch
      result - iteration result
      Returns:
      profiler results