Class CodeCacheRule
- java.lang.Object
-
- org.openjdk.jmc.flightrecorder.rules.jdk.compilation.CodeCacheRule
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static classCodeCacheRule.CodeHeapData
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringCODE_CACHE_RESULT_IDstatic TypedPreference<IQuantity>CODE_CACHE_SIZE_INFO_PERCENTstatic TypedPreference<IQuantity>CODE_CACHE_SIZE_WARN_PERCENTprivate static java.util.List<TypedPreference<?>>CONFIG_ATTRIBUTESprivate static java.lang.StringNON_NMETHODS_NAMEprivate static java.lang.StringNON_PROFILED_NAMEprivate static java.lang.StringPROFILED_NAME
-
Constructor Summary
Constructors Constructor Description CodeCacheRule()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private voidaddIfHalfFull(IQuantity ratioUnallocated, java.util.List<CodeCacheRule.CodeHeapData> heaps, java.lang.String name)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 ResultgetResult(IItemCollection items, IPreferenceValueProvider valueProvider)java.lang.StringgetTopic()private booleanhasSegmentedCodeCache(IItemCollection items)
-
-
-
Field Detail
-
CODE_CACHE_RESULT_ID
public static final java.lang.String CODE_CACHE_RESULT_ID
- See Also:
- Constant Field Values
-
NON_PROFILED_NAME
private static final java.lang.String NON_PROFILED_NAME
- See Also:
- Constant Field Values
-
PROFILED_NAME
private static final java.lang.String PROFILED_NAME
- See Also:
- Constant Field Values
-
NON_NMETHODS_NAME
private static final java.lang.String NON_NMETHODS_NAME
- See Also:
- Constant Field Values
-
CODE_CACHE_SIZE_INFO_PERCENT
public static final TypedPreference<IQuantity> CODE_CACHE_SIZE_INFO_PERCENT
-
CODE_CACHE_SIZE_WARN_PERCENT
public static final TypedPreference<IQuantity> CODE_CACHE_SIZE_WARN_PERCENT
-
CONFIG_ATTRIBUTES
private static final java.util.List<TypedPreference<?>> CONFIG_ATTRIBUTES
-
-
Method Detail
-
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
-
getResult
private Result getResult(IItemCollection items, IPreferenceValueProvider valueProvider)
-
hasSegmentedCodeCache
private boolean hasSegmentedCodeCache(IItemCollection items)
-
addIfHalfFull
private void addIfHalfFull(IQuantity ratioUnallocated, java.util.List<CodeCacheRule.CodeHeapData> heaps, java.lang.String name)
-
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()
-
-