public class MemoryUsage
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static void |
collectGarbage()
Method to collect garbagereturn the amount of memory being used by Electric.
|
long |
getHeapSize() |
static MemoryUsage |
getInstance() |
long |
getMaxMemory() |
static long |
getMemoryUsage()
Method to return the amount of memory being used by Electric.
|
long |
getUsedMemory() |
java.lang.String |
toString() |
public static MemoryUsage getInstance()
public long getHeapSize()
public long getMaxMemory()
public long getUsedMemory()
public java.lang.String toString()
toString
in class java.lang.Object
public static long getMemoryUsage()
public static void collectGarbage()