Package org.ojalgo.machine
Class MemoryEstimator
java.lang.Object
org.ojalgo.machine.MemoryEstimator
MemoryEstimator
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final long
private long
private static final long
private static final long
private static final long
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate MemoryEstimator
add
(long bytes) private long
align
(long alignement) long
estimate()
static long
estimateArray
(Class<?> componentType, int length) static long
estimateObject
(Class<?> type) (package private) static MemoryEstimator
static MemoryEstimator
static MemoryEstimator
makeForSubclass
(MemoryEstimator parentEstimation)
-
Field Details
-
FINAL_ALIGNEMENT
private static final long FINAL_ALIGNEMENT- See Also:
-
PARENT_ALIGNEMENT
private static final long PARENT_ALIGNEMENT- See Also:
-
WORD
private static final long WORD- See Also:
-
ZERO
private static final long ZERO- See Also:
-
myShallowSize
private long myShallowSize
-
-
Constructor Details
-
MemoryEstimator
private MemoryEstimator() -
MemoryEstimator
MemoryEstimator(long aBase)
-
-
Method Details
-
estimateArray
-
estimateObject
-
makeForClassExtendingObject
-
makeForSubclass
-
make
-
add
-
add
-
estimate
public long estimate() -
add
-
align
private long align(long alignement)
-