Package net.thevpc.common.util
Class MemoryMeter
java.lang.Object
net.thevpc.common.util.MemoryMeter
- Author:
- Taha BEN SALAH (taha.bensalah@gmail.com) %creationtime 13 juil. 2006 22:14:21
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncopy()getName()booleanbooleanrestart()restart chronometer and returns a stopped snapshot/copy of the currentrestart chronometer with new name and returns a stopped snapshot/copy of the current (with old name)start()stop()toString()updateDescription(String desc)
-
Constructor Details
-
MemoryMeter
public MemoryMeter() -
MemoryMeter
public MemoryMeter(boolean start) -
MemoryMeter
-
-
Method Details
-
copy
-
restart
restart chronometer and returns a stopped snapshot/copy of the current- Returns:
-
restart
restart chronometer with new name and returns a stopped snapshot/copy of the current (with old name)- Parameters:
newName-- Returns:
-
setName
-
updateDescription
-
getName
-
isStarted
public boolean isStarted() -
isStopped
public boolean isStopped() -
start
-
stop
-
getStartMemory
-
getEndMemory
-
getMemoryUsage
-
toString
-