Package org.openjdk.jmh.profile
Class StackProfiler.StackResult
- java.lang.Object
-
- org.openjdk.jmh.results.Result<StackProfiler.StackResult>
-
- org.openjdk.jmh.profile.StackProfiler.StackResult
-
- All Implemented Interfaces:
java.io.Serializable
- Enclosing class:
- StackProfiler
public static class StackProfiler.StackResult extends Result<StackProfiler.StackResult>
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private static long
serialVersionUID
private java.util.Map<java.lang.Thread.State,Multiset<StackProfiler.StackRecord>>
stacks
private int
topStacks
-
Constructor Summary
Constructors Constructor Description StackResult(java.util.Map<java.lang.Thread.State,Multiset<StackProfiler.StackRecord>> stacks, int topStacks)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
extendedInfo()
Print extended result informationprotected Aggregator<StackProfiler.StackResult>
getIterationAggregator()
Iteration aggregator combines the iteration results into benchmar result.java.lang.String
getStack(java.util.Map<java.lang.Thread.State,Multiset<StackProfiler.StackRecord>> stacks)
protected Aggregator<StackProfiler.StackResult>
getThreadAggregator()
Thread aggregator combines the thread results into iteration result.private long
getTotalSize(java.util.Map<java.lang.Thread.State,Multiset<StackProfiler.StackRecord>> stacks)
private boolean
isSignificant(long part, long total)
java.lang.String
toString()
Result as represented by a String.-
Methods inherited from class org.openjdk.jmh.results.Result
distributionExtendedInfo, getDerivativeResults, getLabel, getRole, getSampleCount, getScore, getScoreConfidence, getScoreError, getScoreUnit, getStatistics, getZeroResult, of, simpleExtendedInfo
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
stacks
private final java.util.Map<java.lang.Thread.State,Multiset<StackProfiler.StackRecord>> stacks
-
topStacks
private final int topStacks
-
-
Constructor Detail
-
StackResult
public StackResult(java.util.Map<java.lang.Thread.State,Multiset<StackProfiler.StackRecord>> stacks, int topStacks)
-
-
Method Detail
-
getThreadAggregator
protected Aggregator<StackProfiler.StackResult> getThreadAggregator()
Description copied from class:Result
Thread aggregator combines the thread results into iteration result.- Specified by:
getThreadAggregator
in classResult<StackProfiler.StackResult>
- Returns:
- thread aggregator
-
getIterationAggregator
protected Aggregator<StackProfiler.StackResult> getIterationAggregator()
Description copied from class:Result
Iteration aggregator combines the iteration results into benchmar result.- Specified by:
getIterationAggregator
in classResult<StackProfiler.StackResult>
- Returns:
- iteration aggregator
-
toString
public java.lang.String toString()
Description copied from class:Result
Result as represented by a String.- Overrides:
toString
in classResult<StackProfiler.StackResult>
- Returns:
- String with the result and unit
-
extendedInfo
public java.lang.String extendedInfo()
Description copied from class:Result
Print extended result information- Overrides:
extendedInfo
in classResult<StackProfiler.StackResult>
- Returns:
- String with extended info
-
getStack
public java.lang.String getStack(java.util.Map<java.lang.Thread.State,Multiset<StackProfiler.StackRecord>> stacks)
-
isSignificant
private boolean isSignificant(long part, long total)
-
getTotalSize
private long getTotalSize(java.util.Map<java.lang.Thread.State,Multiset<StackProfiler.StackRecord>> stacks)
-
-