Package org.apache.calcite.benchmarks
Class FlightRecorderProfiler
- java.lang.Object
-
- org.apache.calcite.benchmarks.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.
-
-
Constructor Summary
Constructors Constructor Description FlightRecorderProfiler()
-
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)
-
-
-
Method Detail
-
addJVMInvokeOptions
public java.util.Collection<java.lang.String> addJVMInvokeOptions(org.openjdk.jmh.infra.BenchmarkParams params)
- Specified by:
addJVMInvokeOptions
in interfaceorg.openjdk.jmh.profile.ExternalProfiler
-
addJVMOptions
public java.util.Collection<java.lang.String> addJVMOptions(org.openjdk.jmh.infra.BenchmarkParams params)
- Specified by:
addJVMOptions
in interfaceorg.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 interfaceorg.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 interfaceorg.openjdk.jmh.profile.ExternalProfiler
-
allowPrintOut
public boolean allowPrintOut()
- Specified by:
allowPrintOut
in interfaceorg.openjdk.jmh.profile.ExternalProfiler
-
allowPrintErr
public boolean allowPrintErr()
- Specified by:
allowPrintErr
in interfaceorg.openjdk.jmh.profile.ExternalProfiler
-
getDescription
public java.lang.String getDescription()
- Specified by:
getDescription
in interfaceorg.openjdk.jmh.profile.Profiler
-
-