|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.zwares.base.monitor.MemoryUtil
This class provides methods to access memory statistics on a given application or a component.
| Constructor Summary | |
MemoryUtil()
Default constructor |
|
MemoryUtil(java.lang.String contextName)
Constructs a memory object. |
|
| Method Summary | |
long |
getChangeInMemory()
Returns change in memory between two calls to getUsedMemory() method. |
long |
getFreeMemory()
Returns memory currently avialable to the application. |
long |
getMaxUsedMemory()
Returns the maximum amount of memory used by the application. |
long |
getMinUsedMemory()
Returns the least amount of memory used by the application. |
long |
getTotalMemory()
Returns total memory currently available to the application. |
long |
getUsedMemory()
Returns memory currently used by the application. |
java.lang.String |
toString()
Converts memory stats to string. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public MemoryUtil()
public MemoryUtil(java.lang.String contextName)
contextName - name assigned to a test.| Method Detail |
public long getUsedMemory()
public long getFreeMemory()
public long getChangeInMemory()
public long getTotalMemory()
public long getMinUsedMemory()
public long getMaxUsedMemory()
public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||