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.
  • Constructor Details

    • StopwatchGC

      public StopwatchGC(String name)
  • Method Details

    • start

      public final void start()
      Overrides:
      start in class Stopwatch
    • stop

      public final void stop()
      Overrides:
      stop in class Stopwatch
    • report

      public final 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 String getName()
      Returns the name for this timer.
    • toString

      public String toString()
      Overrides:
      toString in class Stopwatch