com.ibm.wala.util.perf
Class StopwatchGC

java.lang.Object
  extended by com.ibm.wala.util.perf.Stopwatch
      extended by 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.


Field Summary
 
Fields inherited from class com.ibm.wala.util.perf.Stopwatch
count
 
Constructor Summary
StopwatchGC(java.lang.String name)
           
 
Method Summary
 float getEndMemory()
           
 float getFootprint()
           
 java.lang.String getName()
          Returns the name for this timer.
 float getStartMemory()
           
 java.lang.String report()
           
 void start()
           
 void stop()
           
 java.lang.String toString()
           
 
Methods inherited from class com.ibm.wala.util.perf.Stopwatch
getCount, getElapsedMillis
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StopwatchGC

public StopwatchGC(java.lang.String name)
Method Detail

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