|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjcontrol.system.Memory
public class Memory
Get informations about memory consumption.
| Method Summary | |
|---|---|
static int |
available()
Get the immediately allocatable (available) size of memory. |
static int |
free()
Get the size of free memory. |
static int |
size()
Get the size of total memory. |
static int |
sizeOf(Class cls)
Get the size of used heap for the overgiven class of object. |
static int |
sizeOf(Object obj)
Get the size of used heap for the overgiven object. |
static int |
used()
Get the size of used memory. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, notifyAll, toString, wait |
| Method Detail |
|---|
public static int size()
public static int free()
available()public static int used()
size() - free().
public static int available()
public static int sizeOf(Object obj)
obj -
public static int sizeOf(Class cls)
cls -
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||