Class IncreasingLiveSetRule
- java.lang.Object
-
- org.openjdk.jmc.flightrecorder.rules.jdk.memory.IncreasingLiveSetRule
-
-
Field Summary
Fields Modifier and Type Field Description static TypedPreference<IQuantity>CLASSES_LOADED_PERCENTprivate static java.util.List<TypedPreference<?>>CONFIG_ATTRIBUTESprivate static doublePERCENT_OF_HEAP_INCREASE_PER_SECONDDefines the relative amount of live set increase per second that corresponds to a rule score of 75.static TypedPreference<IQuantity>RELEVANCE_THRESHOLDprivate static java.lang.StringRESULT_IDstatic TypedPreference<IQuantity>YOUNG_COLLECTION_THRESHOLD
-
Constructor Summary
Constructors Constructor Description IncreasingLiveSetRule()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.concurrent.RunnableFuture<Result>evaluate(IItemCollection items, IPreferenceValueProvider valueProvider)Gets a future representing the result of the evaluation of this rule.java.util.Collection<TypedPreference<?>>getConfigurationAttributes()Gets information about which attributes may be configured during rule evaluation.java.lang.StringgetId()java.lang.StringgetName()private IQuantitygetPostWarmupTime(IItemCollection items, IQuantity classesLoadedPercent)private ResultgetResult(IItemCollection items, IPreferenceValueProvider valueProvider)java.lang.StringgetTopic()
-
-
-
Field Detail
-
PERCENT_OF_HEAP_INCREASE_PER_SECOND
private static final double PERCENT_OF_HEAP_INCREASE_PER_SECOND
Defines the relative amount of live set increase per second that corresponds to a rule score of 75.- See Also:
- Constant Field Values
-
RESULT_ID
private static final java.lang.String RESULT_ID
- See Also:
- Constant Field Values
-
CLASSES_LOADED_PERCENT
public static final TypedPreference<IQuantity> CLASSES_LOADED_PERCENT
-
RELEVANCE_THRESHOLD
public static final TypedPreference<IQuantity> RELEVANCE_THRESHOLD
-
YOUNG_COLLECTION_THRESHOLD
public static final TypedPreference<IQuantity> YOUNG_COLLECTION_THRESHOLD
-
CONFIG_ATTRIBUTES
private static final java.util.List<TypedPreference<?>> CONFIG_ATTRIBUTES
-
-
Method Detail
-
getResult
private Result getResult(IItemCollection items, IPreferenceValueProvider valueProvider)
-
getPostWarmupTime
private IQuantity getPostWarmupTime(IItemCollection items, IQuantity classesLoadedPercent)
-
evaluate
public java.util.concurrent.RunnableFuture<Result> evaluate(IItemCollection items, IPreferenceValueProvider valueProvider)
Description copied from interface:IRuleGets a future representing the result of the evaluation of this rule. Running the RunnableFuture is the responsibility of the caller of this method, not the implementation.- Specified by:
evaluatein interfaceIRule- Parameters:
items- items to evaluatevalueProvider- Provider of configuration values used for evaluation. The attributes that will be asked for from the provider should be provided byIRule.getConfigurationAttributes().- Returns:
- a RunnableFuture that when run will return the evaluation result
-
getConfigurationAttributes
public java.util.Collection<TypedPreference<?>> getConfigurationAttributes()
Description copied from interface:IRuleGets information about which attributes may be configured during rule evaluation.- Specified by:
getConfigurationAttributesin interfaceIRule- Returns:
- a list of configuration attributes
-
getId
public java.lang.String getId()
-
getName
public java.lang.String getName()
-
-