Package org.openjdk.jmh.profile
Class GCProfiler
- java.lang.Object
-
- org.openjdk.jmh.profile.GCProfiler
-
- All Implemented Interfaces:
InternalProfiler,Profiler
public class GCProfiler extends Object implements InternalProfiler
-
-
Constructor Summary
Constructors Constructor Description GCProfiler(String initLine)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Collection<? extends Result>afterIteration(BenchmarkParams benchmarkParams, IterationParams iterationParams, IterationResult iResult)Run this code after a benchmark iteration finishedvoidbeforeIteration(BenchmarkParams benchmarkParams, IterationParams iterationParams)Run this code before starting the next benchmark iteration.StringgetDescription()Human-readable one-line description of the profiler.
-
-
-
Constructor Detail
-
GCProfiler
public GCProfiler(String initLine) throws ProfilerException
- Throws:
ProfilerException
-
-
Method Detail
-
getDescription
public 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 Collection<? extends Result> afterIteration(BenchmarkParams benchmarkParams, IterationParams iterationParams, IterationResult iResult)
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 launchiResult- iteration result- Returns:
- profiler results
-
-