|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectat.spardat.xma.mdl.MemoryEstimator
Provides some utility method to estimate the memory consumption of java objects.
| Constructor Summary | |
MemoryEstimator()
|
|
| Method Summary | |
static int |
sizeOf(java.lang.String s)
Returns the number of bytes a String consumes if it is not shared with other Strings. |
static int |
sizeOfObject(int numInstances)
Returns the number of bytes an java objects consumes that has numInstances instance variables. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public MemoryEstimator()
| Method Detail |
public static int sizeOfObject(int numInstances)
public static int sizeOf(java.lang.String s)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||