Package org.ametys.core.util
Class SizeUtils
java.lang.Object
org.ametys.core.util.SizeUtils
Helper for manipulating objects heap size.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic @interface
Fields annotated withSizeUtils.ExcludeFromSizeCalculation
are excluded for size calculation -
Method Summary
-
Method Details
-
enabled
Returns true if size computation is enabled for this VM- Returns:
- true if size computation is enabled
-
sizeOf
Calculates the heap size of the given object.- Parameters:
object
- the object- Returns:
- the size of the object.
-