Package org.openjdk.jmh.profile
Class GCProfiler
java.lang.Object
org.openjdk.jmh.profile.GCProfiler
- All Implemented Interfaces:
InternalProfiler
,Profiler
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static class
(package private) static class
This class encapsulates any platform-specific functionality. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate long
private long
private long
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCollection
<? extends Result> afterIteration
(BenchmarkParams benchmarkParams, IterationParams iterationParams, IterationResult iResult) Run this code after a benchmark iteration finishedvoid
beforeIteration
(BenchmarkParams benchmarkParams, IterationParams iterationParams) Run this code before starting the next benchmark iteration.Human-readable one-line description of the profiler.
-
Field Details
-
beforeTime
private long beforeTime -
beforeGCCount
private long beforeGCCount -
beforeGCTime
private long beforeGCTime -
beforeAllocated
-
-
Constructor Details
-
GCProfiler
public GCProfiler()
-
-
Method Details
-
getDescription
Description copied from interface:Profiler
Human-readable one-line description of the profiler.- Specified by:
getDescription
in interfaceProfiler
- Returns:
- description
-
beforeIteration
Description copied from interface:InternalProfiler
Run this code before starting the next benchmark iteration.- Specified by:
beforeIteration
in 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:InternalProfiler
Run this code after a benchmark iteration finished- Specified by:
afterIteration
in interfaceInternalProfiler
- Parameters:
benchmarkParams
- benchmark parameters used for current launchiterationParams
- iteration parameters used for current launchiResult
- iteration result- Returns:
- profiler results
-