public class FewSampledThreadsRule extends AbstractRule
Modifier and Type | Field and Description |
---|---|
static TypedPreference<IQuantity> |
CPU_WINDOW_SIZE |
static TypedPreference<IQuantity> |
MIN_CPU_RATIO_LIMIT |
static TypedPreference<IQuantity> |
MIN_SAMPLE_COUNT |
static TypedPreference<IQuantity> |
MIN_SAMPLE_COUNT_PER_THREAD |
private static java.lang.String |
NEW_PARAGRAPH |
static TypedPreference<IQuantity> |
SAMPLED_THREADS_RATIO_LIMIT |
private static IAggregator<java.lang.Iterable<? extends GroupingAggregator.GroupEntry<IMCThread,Aggregators.CountConsumer>>,?> |
SAMPLES_PER_THREAD |
evaluationTask
Constructor and Description |
---|
FewSampledThreadsRule() |
Modifier and Type | Method and Description |
---|---|
private Result |
calculateResult(IItemCollection items,
IPreferenceValueProvider vp) |
private Result |
checkAvailability(IItemCollection items) |
private static IItemCollection |
getCpuItems(IItemCollection items) |
private static java.lang.String |
getExtraTypesInfo(IItemCollection items) |
private static IQuantity |
getHardwareThreads(IItemCollection items) |
private Result |
getIdleResult(IItemCollection items,
IQuantity minCpuRatio,
IQuantity windowSize,
int sampledThreads) |
protected Result |
getResult(IItemCollection items,
IPreferenceValueProvider vp) |
evaluate, getConfigurationAttributes, getId, getName, getTopic
private static final java.lang.String NEW_PARAGRAPH
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
protected Result getResult(IItemCollection items, IPreferenceValueProvider vp)
getResult
in class AbstractRule
private Result calculateResult(IItemCollection items, IPreferenceValueProvider vp)
private Result getIdleResult(IItemCollection items, IQuantity minCpuRatio, IQuantity windowSize, int sampledThreads)
private Result checkAvailability(IItemCollection items)
private static java.lang.String getExtraTypesInfo(IItemCollection items)
private static IItemCollection getCpuItems(IItemCollection items)
private static IQuantity getHardwareThreads(IItemCollection items)