public class FewSampledThreadsRule extends AbstractRule
Modifier and Type | Field and Description |
---|---|
static TypedPreference<IQuantity> |
CPU_WINDOW_SIZE |
static TypedResult<IQuantity> |
HW_THREADS |
static TypedResult<IQuantity> |
JVM_USAGE |
static TypedResult<IRange<IQuantity>> |
MAX_WINDOW |
static TypedPreference<IQuantity> |
MIN_CPU_RATIO_LIMIT |
static TypedPreference<IQuantity> |
MIN_SAMPLE_COUNT |
static TypedPreference<IQuantity> |
MIN_SAMPLE_COUNT_PER_THREAD |
static TypedPreference<IQuantity> |
SAMPLED_THREADS_RATIO_LIMIT |
private static IAggregator<java.lang.Iterable<? extends GroupingAggregator.GroupEntry<IMCThread,Aggregators.CountConsumer>>,?> |
SAMPLES_PER_THREAD |
static TypedResult<IQuantity> |
THREADS_WITH_ENOUGH_SAMPLES |
static TypedResult<IQuantity> |
TOTAL_SAMPLES |
evaluationTask
Constructor and Description |
---|
FewSampledThreadsRule() |
Modifier and Type | Method and Description |
---|---|
private static IItemCollection |
getCpuItems(IItemCollection items) |
private static IQuantity |
getHardwareThreads(IItemCollection items) |
private IResult |
getIdleResult(IItemCollection items,
IQuantity minCpuRatio,
IQuantity windowSize,
int sampledThreads,
IPreferenceValueProvider vp) |
protected IResult |
getResult(IItemCollection items,
IPreferenceValueProvider vp,
IResultValueProvider resultProvider) |
createEvaluation, getConfigurationAttributes, getId, getName, getRequiredEvents, getResults, getTopic
private static final IAggregator<java.lang.Iterable<? extends GroupingAggregator.GroupEntry<IMCThread,Aggregators.CountConsumer>>,?> SAMPLES_PER_THREAD
public static final TypedPreference<IQuantity> SAMPLED_THREADS_RATIO_LIMIT
public static final TypedPreference<IQuantity> MIN_CPU_RATIO_LIMIT
public static final TypedPreference<IQuantity> CPU_WINDOW_SIZE
public static final TypedPreference<IQuantity> MIN_SAMPLE_COUNT
public static final TypedPreference<IQuantity> MIN_SAMPLE_COUNT_PER_THREAD
public static final TypedResult<IQuantity> HW_THREADS
public static final TypedResult<IQuantity> THREADS_WITH_ENOUGH_SAMPLES
public static final TypedResult<IRange<IQuantity>> MAX_WINDOW
public static final TypedResult<IQuantity> JVM_USAGE
public static final TypedResult<IQuantity> TOTAL_SAMPLES
protected IResult getResult(IItemCollection items, IPreferenceValueProvider vp, IResultValueProvider resultProvider)
getResult
in class AbstractRule
private IResult getIdleResult(IItemCollection items, IQuantity minCpuRatio, IQuantity windowSize, int sampledThreads, IPreferenceValueProvider vp)
private static IItemCollection getCpuItems(IItemCollection items)
private static IQuantity getHardwareThreads(IItemCollection items)