abstract class AbstractHotspotProfiler extends java.lang.Object implements InternalProfiler
Modifier and Type | Class and Description |
---|---|
(package private) static class |
AbstractHotspotProfiler.HotspotInternalResult
Represents the HotSpot profiling result.
|
Modifier and Type | Field and Description |
---|---|
private java.util.Map<java.lang.String,java.lang.Long> |
prevs |
Constructor and Description |
---|
AbstractHotspotProfiler() |
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.
|
static java.lang.Long |
convert(java.lang.Object o) |
protected AbstractHotspotProfiler.HotspotInternalResult |
counters() |
protected abstract java.util.Collection<sun.management.counter.Counter> |
getCounters()
Returns internal counters for specific MXBean
|
static <T> T |
getInstance(java.lang.String name) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDescription
public AbstractHotspotProfiler() throws ProfilerException
ProfilerException
protected abstract java.util.Collection<sun.management.counter.Counter> getCounters()
public 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 void beforeIteration(BenchmarkParams benchmarkParams, IterationParams iterationParams)
InternalProfiler
beforeIteration
in interface InternalProfiler
benchmarkParams
- benchmark parameters used for current launchiterationParams
- iteration parameters used for current launchpublic static java.lang.Long convert(java.lang.Object o)
protected AbstractHotspotProfiler.HotspotInternalResult counters()
public static <T> T getInstance(java.lang.String name)