de.hpi.fgis.dude.util
Class MemoryCheckerTask
java.lang.Object
java.util.TimerTask
de.hpi.fgis.dude.util.MemoryCheckerTask
- All Implemented Interfaces:
- Runnable
public class MemoryCheckerTask
- extends TimerTask
This task retrieves the memory usage of the current process and stores the maximum memory usage ever occurred.
- Author:
- ziawasch.abedjan
Method Summary |
long |
getAverageMemoryUsed()
Gets the average amount of memory used by the current application. |
long |
getMaxMemoryUsed()
Gets the maximum amount of memory used by the current application. |
long |
getMinMemoryUsed()
Gets the minimum amount of memory used by the current application. |
void |
run()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MemoryCheckerTask
public MemoryCheckerTask()
getMaxMemoryUsed
public long getMaxMemoryUsed()
- Gets the maximum amount of memory used by the current application.
- Returns:
- Maximum amount of memory in KB.
run
public void run()
- Specified by:
run
in interface Runnable
- Specified by:
run
in class TimerTask
getAverageMemoryUsed
public long getAverageMemoryUsed()
- Gets the average amount of memory used by the current application.
- Returns:
- Maximum amount of memory in KB.
getMinMemoryUsed
public long getMinMemoryUsed()
- Gets the minimum amount of memory used by the current application.
- Returns:
- Minimum amount of memory in KB.
Copyright © 2011 Hasso Plattner Institute - Chair of Information Systems. All Rights Reserved.