Package org.openjdk.jmh.profile
Class StackProfiler
java.lang.Object
org.openjdk.jmh.profile.StackProfiler
- All Implemented Interfaces:
InternalProfiler
,Profiler
Very basic and naive stack profiler.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclass
private static class
static class
static class
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final String[]
Threads to ignore (known system and harness threads)private final int
private final boolean
private StackProfiler.SamplingTask
private final int
private final int
-
Constructor Summary
Constructors -
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.(package private) static String
dottedLine
(String header) Human-readable one-line description of the profiler.
-
Field Details
-
IGNORED_THREADS
Threads to ignore (known system and harness threads) -
stackLines
private final int stackLines -
topStacks
private final int topStacks -
periodMsec
private final int periodMsec -
sampleLine
private final boolean sampleLine -
excludePackageNames
-
samplingTask
-
-
Constructor Details
-
StackProfiler
- Throws:
ProfilerException
-
-
Method Details
-
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 result) 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 launchresult
- iteration result- Returns:
- profiler results
-
getDescription
Description copied from interface:Profiler
Human-readable one-line description of the profiler.- Specified by:
getDescription
in interfaceProfiler
- Returns:
- description
-
dottedLine
-