Class ClassLeakingRule
- java.lang.Object
-
- org.openjdk.jmc.flightrecorder.rules.jdk.general.ClassLeakingRule
-
- All Implemented Interfaces:
IRule
public class ClassLeakingRule extends java.lang.Object implements IRule
This rule looks at the loaded classes to try to figure out if multiple classes with the same name has been loaded. Note that this rule can get fairly expensive if you have load events with many (thousands) of unique classes.
-
-
Field Summary
Fields Modifier and Type Field Description static TypedCollectionResult<ClassEntry>LOADED_CLASSESstatic TypedPreference<IQuantity>MAX_NUMBER_OF_CLASSES_TO_REPORTstatic TypedResult<IMCType>MOST_LOADED_CLASSstatic TypedResult<IQuantity>MOST_LOADED_CLASS_TIMESstatic TypedPreference<IQuantity>WARNING_LIMIT
-
Constructor Summary
Constructors Constructor Description ClassLeakingRule()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.concurrent.RunnableFuture<IResult>createEvaluation(IItemCollection items, IPreferenceValueProvider preferenceValueProvider, IResultValueProvider dependencyResults)java.util.Collection<TypedPreference<?>>getConfigurationAttributes()java.lang.StringgetId()java.lang.StringgetName()java.util.Map<java.lang.String,RulesToolkit.EventAvailability>getRequiredEvents()java.util.Collection<TypedResult<?>>getResults()java.lang.StringgetTopic()
-
-
-
Field Detail
-
WARNING_LIMIT
public static final TypedPreference<IQuantity> WARNING_LIMIT
-
MAX_NUMBER_OF_CLASSES_TO_REPORT
public static final TypedPreference<IQuantity> MAX_NUMBER_OF_CLASSES_TO_REPORT
-
LOADED_CLASSES
public static final TypedCollectionResult<ClassEntry> LOADED_CLASSES
-
MOST_LOADED_CLASS
public static final TypedResult<IMCType> MOST_LOADED_CLASS
-
MOST_LOADED_CLASS_TIMES
public static final TypedResult<IQuantity> MOST_LOADED_CLASS_TIMES
-
-
Method Detail
-
getRequiredEvents
public java.util.Map<java.lang.String,RulesToolkit.EventAvailability> getRequiredEvents()
- Specified by:
getRequiredEventsin interfaceIRule
-
createEvaluation
public java.util.concurrent.RunnableFuture<IResult> createEvaluation(IItemCollection items, IPreferenceValueProvider preferenceValueProvider, IResultValueProvider dependencyResults)
- Specified by:
createEvaluationin interfaceIRule
-
getConfigurationAttributes
public java.util.Collection<TypedPreference<?>> getConfigurationAttributes()
- Specified by:
getConfigurationAttributesin interfaceIRule
-
getResults
public java.util.Collection<TypedResult<?>> getResults()
- Specified by:
getResultsin interfaceIRule
-
-