Package org.openjdk.jmh.profile
Interface InternalProfiler
- All Superinterfaces:
Profiler
- All Known Implementing Classes:
AsyncProfiler
,ClassloaderProfiler
,CompilerProfiler
,GCProfiler
,JavaFlightRecorderProfiler
,PausesProfiler
,StackProfiler
Internal profiler.
Internal profilers run in the benchmark JVM, and may query the internal JVM facilities.
-
Method Summary
Modifier and TypeMethodDescriptionCollection
<? extends Result> afterIteration
(BenchmarkParams benchmarkParams, IterationParams iterationParams, IterationResult result) Run this code after a benchmark iteration finishedvoid
beforeIteration
(BenchmarkParams benchmarkParams, IterationParams iterationParams) Run this code before starting the next benchmark iteration.Methods inherited from interface org.openjdk.jmh.profile.Profiler
getDescription
-
Method Details
-
beforeIteration
Run this code before starting the next benchmark iteration.- Parameters:
benchmarkParams
- benchmark parameters used for current launchiterationParams
- 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 launchiterationParams
- iteration parameters used for current launchresult
- iteration result- Returns:
- profiler results
-