Class AutoBoxingRule
- java.lang.Object
-
- org.openjdk.jmc.flightrecorder.rules.AbstractRule
-
- org.openjdk.jmc.flightrecorder.rules.jdk.memory.AutoBoxingRule
-
- All Implemented Interfaces:
IRule
public class AutoBoxingRule extends AbstractRule
Rule that checks how much of the total allocation is caused by possible primitive to object conversion. Looks at top frames and searches for java.lang.BoxType.valueOf.
-
-
Field Summary
Fields Modifier and Type Field Description private static TypedPreference<IQuantity>
AUTOBOXING_RATIO_INFO_LIMIT
private static TypedPreference<IQuantity>
AUTOBOXING_RATIO_WARNING_LIMIT
private static java.lang.String
BOOLEAN
private static java.lang.String
BYTE
private static java.lang.String
CHARACTER
private static java.lang.String
DOUBLE
private static java.lang.String
FLOAT
private static java.lang.String
INTEGER
private static IPredicate<IMCMethod>
IS_AUTOBOXED_PREDICATE
private static java.lang.String
LONG
private static java.lang.String
SHORT
private static java.lang.String
VALUE_OF_METHOD_NAME
-
Fields inherited from class org.openjdk.jmc.flightrecorder.rules.AbstractRule
evaluationTask
-
-
Constructor Summary
Constructors Constructor Description AutoBoxingRule()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Result
getResult(IItemCollection items, IPreferenceValueProvider vp)
-
Methods inherited from class org.openjdk.jmc.flightrecorder.rules.AbstractRule
evaluate, getConfigurationAttributes, getId, getName, getTopic
-
-
-
-
Field Detail
-
VALUE_OF_METHOD_NAME
private static final java.lang.String VALUE_OF_METHOD_NAME
- See Also:
- Constant Field Values
-
SHORT
private static final java.lang.String SHORT
- See Also:
- Constant Field Values
-
LONG
private static final java.lang.String LONG
- See Also:
- Constant Field Values
-
INTEGER
private static final java.lang.String INTEGER
- See Also:
- Constant Field Values
-
FLOAT
private static final java.lang.String FLOAT
- See Also:
- Constant Field Values
-
DOUBLE
private static final java.lang.String DOUBLE
- See Also:
- Constant Field Values
-
CHARACTER
private static final java.lang.String CHARACTER
- See Also:
- Constant Field Values
-
BYTE
private static final java.lang.String BYTE
- See Also:
- Constant Field Values
-
BOOLEAN
private static final java.lang.String BOOLEAN
- See Also:
- Constant Field Values
-
IS_AUTOBOXED_PREDICATE
private static final IPredicate<IMCMethod> IS_AUTOBOXED_PREDICATE
-
AUTOBOXING_RATIO_INFO_LIMIT
private static final TypedPreference<IQuantity> AUTOBOXING_RATIO_INFO_LIMIT
-
AUTOBOXING_RATIO_WARNING_LIMIT
private static final TypedPreference<IQuantity> AUTOBOXING_RATIO_WARNING_LIMIT
-
-
Method Detail
-
getResult
protected Result getResult(IItemCollection items, IPreferenceValueProvider vp)
- Specified by:
getResult
in classAbstractRule
-
-