Class StopwatchGC


  • public class StopwatchGC
    extends Stopwatch
    A Stopwatch that also queries the free memory from the GC. This is mostly useless.
    • 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