public class StackProfiler extends java.lang.Object implements InternalProfiler
Modifier and Type | Class and Description |
---|---|
class |
StackProfiler.SamplingTask |
private static class |
StackProfiler.StackRecord |
static class |
StackProfiler.StackResult |
static class |
StackProfiler.StackResultAggregator |
Modifier and Type | Field and Description |
---|---|
private java.util.Set<java.lang.String> |
excludePackageNames |
private static java.lang.String[] |
IGNORED_THREADS
Threads to ignore (known system and harness threads)
|
private int |
periodMsec |
private boolean |
sampleLine |
private StackProfiler.SamplingTask |
samplingTask |
private int |
stackLines |
private int |
topStacks |
Constructor and Description |
---|
StackProfiler(java.lang.String initLine) |
Modifier and Type | Method and Description |
---|---|
java.util.Collection<? extends Result> |
afterIteration(BenchmarkParams benchmarkParams,
IterationParams iterationParams,
IterationResult result)
Run this code after a benchmark iteration finished
|
void |
beforeIteration(BenchmarkParams benchmarkParams,
IterationParams iterationParams)
Run this code before starting the next benchmark iteration.
|
(package private) static java.lang.String |
dottedLine(java.lang.String header) |
java.lang.String |
getDescription()
Human-readable one-line description of the profiler.
|
private static final java.lang.String[] IGNORED_THREADS
private final int stackLines
private final int topStacks
private final int periodMsec
private final boolean sampleLine
private final java.util.Set<java.lang.String> excludePackageNames
private volatile StackProfiler.SamplingTask samplingTask
public StackProfiler(java.lang.String initLine) throws ProfilerException
ProfilerException
public void beforeIteration(BenchmarkParams benchmarkParams, IterationParams iterationParams)
InternalProfiler
beforeIteration
in interface InternalProfiler
benchmarkParams
- benchmark parameters used for current launchiterationParams
- iteration parameters used for current launchpublic java.util.Collection<? extends Result> afterIteration(BenchmarkParams benchmarkParams, IterationParams iterationParams, IterationResult result)
InternalProfiler
afterIteration
in interface InternalProfiler
benchmarkParams
- benchmark parameters used for current launchiterationParams
- iteration parameters used for current launchresult
- iteration resultpublic java.lang.String getDescription()
Profiler
getDescription
in interface Profiler
static java.lang.String dottedLine(java.lang.String header)