Class FlightRecorderProfiler

  • All Implemented Interfaces:
    org.openjdk.jmh.profile.ExternalProfiler, org.openjdk.jmh.profile.Profiler

    public class FlightRecorderProfiler
    extends java.lang.Object
    implements org.openjdk.jmh.profile.ExternalProfiler
    Captures Flight Recorder log. Note: Flight Recorder is available in OracleJDK only. Usage of Flight Recorder in production requires a LICENSE FEE, however Flight Recorder is free for use in test systems. It is assumed you would not use Calcite benchmarks for running a production system, thus it is believed to be safe.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Collection<java.lang.String> addJVMInvokeOptions​(org.openjdk.jmh.infra.BenchmarkParams params)  
      java.util.Collection<java.lang.String> addJVMOptions​(org.openjdk.jmh.infra.BenchmarkParams params)  
      java.util.Collection<? extends org.openjdk.jmh.results.Result> afterTrial​(org.openjdk.jmh.results.BenchmarkResult br, long pid, java.io.File stdOut, java.io.File stdErr)  
      boolean allowPrintErr()  
      boolean allowPrintOut()  
      void beforeTrial​(org.openjdk.jmh.infra.BenchmarkParams benchmarkParams)  
      java.lang.String getDescription()  
      private long getDurationSeconds​(org.openjdk.jmh.infra.IterationParams warmup)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • FlightRecorderProfiler

        public FlightRecorderProfiler()
    • Method Detail

      • addJVMInvokeOptions

        public java.util.Collection<java.lang.String> addJVMInvokeOptions​(org.openjdk.jmh.infra.BenchmarkParams params)
        Specified by:
        addJVMInvokeOptions in interface org.openjdk.jmh.profile.ExternalProfiler
      • addJVMOptions

        public java.util.Collection<java.lang.String> addJVMOptions​(org.openjdk.jmh.infra.BenchmarkParams params)
        Specified by:
        addJVMOptions in interface org.openjdk.jmh.profile.ExternalProfiler
      • getDurationSeconds

        private long getDurationSeconds​(org.openjdk.jmh.infra.IterationParams warmup)
      • beforeTrial

        public void beforeTrial​(org.openjdk.jmh.infra.BenchmarkParams benchmarkParams)
        Specified by:
        beforeTrial in interface org.openjdk.jmh.profile.ExternalProfiler
      • afterTrial

        public java.util.Collection<? extends org.openjdk.jmh.results.Result> afterTrial​(org.openjdk.jmh.results.BenchmarkResult br,
                                                                                         long pid,
                                                                                         java.io.File stdOut,
                                                                                         java.io.File stdErr)
        Specified by:
        afterTrial in interface org.openjdk.jmh.profile.ExternalProfiler
      • allowPrintOut

        public boolean allowPrintOut()
        Specified by:
        allowPrintOut in interface org.openjdk.jmh.profile.ExternalProfiler
      • allowPrintErr

        public boolean allowPrintErr()
        Specified by:
        allowPrintErr in interface org.openjdk.jmh.profile.ExternalProfiler
      • getDescription

        public java.lang.String getDescription()
        Specified by:
        getDescription in interface org.openjdk.jmh.profile.Profiler