com.ibm.wala.util.perf
Class StopwatchGC
java.lang.Object
com.ibm.wala.util.perf.Stopwatch
com.ibm.wala.util.perf.StopwatchGC
public class StopwatchGC
- extends Stopwatch
A Stopwatch that also queries the free memory from the GC.
This is mostly useless.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
StopwatchGC
public StopwatchGC(java.lang.String name)
start
public final void start()
- Overrides:
start in class Stopwatch
stop
public final void stop()
- Overrides:
stop in class Stopwatch
report
public final java.lang.String report()
getEndMemory
public float getEndMemory()
- Returns:
- memory at the end of the phase, in MB
getStartMemory
public float getStartMemory()
- Returns:
- memory at the end of the phase, in MB
getFootprint
public float getFootprint()
- Returns:
- getEndMemory() - getStartMemory()
getName
public java.lang.String getName()
- Returns the name for this timer.
toString
public java.lang.String toString()
- Overrides:
toString in class Stopwatch