org.apache.ivy.util
public final class MemoryUtil extends Object
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(String[] args) |
static long | sizeOf(Class clazz)
Returns the approximate size of a default instance of the given class.
|
Returns: the currently used memory, in bytes.
Parameters: clazz the class to evaluate.
Returns: the estimated size of instance, in bytes.