Package org.openjdk.jmh.profile
Class PausesProfiler
- java.lang.Object
-
- org.openjdk.jmh.profile.PausesProfiler
-
- All Implemented Interfaces:
InternalProfiler,Profiler
public class PausesProfiler extends java.lang.Object implements InternalProfiler
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static classPausesProfiler.PausesProfilerResultprivate classPausesProfiler.Ticker
-
Field Summary
Fields Modifier and Type Field Description private SampleBufferbufferprivate longexpectedNsprivate longthreshprivate PausesProfiler.Tickerticker
-
Constructor Summary
Constructors Constructor Description PausesProfiler(java.lang.String initLine)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Collection<? extends Result>afterIteration(BenchmarkParams benchmarkParams, IterationParams iterationParams, IterationResult result)Run this code after a benchmark iteration finishedvoidbeforeIteration(BenchmarkParams benchmarkParams, IterationParams iterationParams)Run this code before starting the next benchmark iteration.private longcalibrate()java.lang.StringgetDescription()Human-readable one-line description of the profiler.
-
-
-
Field Detail
-
ticker
private PausesProfiler.Ticker ticker
-
buffer
private SampleBuffer buffer
-
expectedNs
private long expectedNs
-
thresh
private long thresh
-
-
Constructor Detail
-
PausesProfiler
public PausesProfiler(java.lang.String initLine) throws ProfilerException- Throws:
ProfilerException
-
-
Method Detail
-
getDescription
public java.lang.String getDescription()
Description copied from interface:ProfilerHuman-readable one-line description of the profiler.- Specified by:
getDescriptionin interfaceProfiler- Returns:
- description
-
beforeIteration
public void beforeIteration(BenchmarkParams benchmarkParams, IterationParams iterationParams)
Description copied from interface:InternalProfilerRun this code before starting the next benchmark iteration.- Specified by:
beforeIterationin interfaceInternalProfiler- Parameters:
benchmarkParams- benchmark parameters used for current launchiterationParams- iteration parameters used for current launch
-
afterIteration
public java.util.Collection<? extends Result> afterIteration(BenchmarkParams benchmarkParams, IterationParams iterationParams, IterationResult result)
Description copied from interface:InternalProfilerRun this code after a benchmark iteration finished- Specified by:
afterIterationin interfaceInternalProfiler- Parameters:
benchmarkParams- benchmark parameters used for current launchiterationParams- iteration parameters used for current launchresult- iteration result- Returns:
- profiler results
-
calibrate
private long calibrate()
-
-