public class GCProfiler extends java.lang.Object implements InternalProfiler
Modifier and Type | Class and Description |
---|---|
(package private) static class |
GCProfiler.HotspotAllocationSnapshot |
(package private) static class |
GCProfiler.VMSupport
This class encapsulates any platform-specific functionality.
|
Modifier and Type | Field and Description |
---|---|
private GCProfiler.HotspotAllocationSnapshot |
beforeAllocated |
private long |
beforeGCCount |
private long |
beforeGCTime |
private long |
beforeTime |
Constructor and Description |
---|
GCProfiler() |
Modifier and Type | Method and Description |
---|---|
java.util.Collection<? extends Result> |
afterIteration(BenchmarkParams benchmarkParams,
IterationParams iterationParams,
IterationResult iResult)
Run this code after a benchmark iteration finished
|
void |
beforeIteration(BenchmarkParams benchmarkParams,
IterationParams iterationParams)
Run this code before starting the next benchmark iteration.
|
java.lang.String |
getDescription()
Human-readable one-line description of the profiler.
|
private long beforeTime
private long beforeGCCount
private long beforeGCTime
private GCProfiler.HotspotAllocationSnapshot beforeAllocated
public GCProfiler() throws ProfilerException
ProfilerException
public java.lang.String getDescription()
Profiler
getDescription
in interface Profiler
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 iResult)
InternalProfiler
afterIteration
in interface InternalProfiler
benchmarkParams
- benchmark parameters used for current launchiterationParams
- iteration parameters used for current launchiResult
- iteration result