public class HeapUsageEstimator extends Object
Modifier and Type | Class and Description |
---|---|
static class |
HeapUsageEstimator.Builder |
Constructor and Description |
---|
HeapUsageEstimator() |
Modifier and Type | Method and Description |
---|---|
String |
getDesc() |
int |
getObjectHeaderSize() |
int |
getObjectPadding() |
int |
getReferenceSize() |
int |
getSuperclassFieldPadding() |
static void |
main(String[] args) |
static long |
roundTo(long x,
int multiple) |
long |
sizeOf(Object obj) |
long |
sizeOfArray(Class<?> type,
int length) |
int |
sizeOfField(Class<?> type) |
long |
sizeOfInstance(Class<?> type) |
public String getDesc()
public int getObjectHeaderSize()
public int getObjectPadding()
public int getSuperclassFieldPadding()
public int getReferenceSize()
public long sizeOf(Object obj)
public int sizeOfField(Class<?> type)
public long sizeOfInstance(Class<?> type)
public long sizeOfArray(Class<?> type, int length)
public static long roundTo(long x, int multiple)
public static void main(String[] args)
Copyright © GigaSpaces.