|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.ivy.util.MemoryUtil
public final class MemoryUtil
Memory related utilities.
| Method Summary | |
|---|---|
static long |
getUsedMemory()
Returns the currently used memory, after calling garbage collector and waiting enough to get maximal chance it is actually called. |
static void |
main(java.lang.String[] args)
|
static long |
sizeOf(java.lang.Class clazz)
Returns the approximate size of a default instance of the given class. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static long sizeOf(java.lang.Class clazz)
clazz - the class to evaluate.
public static long getUsedMemory()
Runtime.gc() is only advisory,
results returned by this method should be treated as rough approximation only.
public static void main(java.lang.String[] args)
throws java.lang.ClassNotFoundException
java.lang.ClassNotFoundException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||