Class Footprint


  • public class Footprint
    extends java.lang.Object
    Class to maintain a snapshot of a processes's time and memory usage. This uses some JDK 1.5 APIs so must be careful that it doesn't cause any harm when run from 1.4.
    See Also:
    FindBugs
    • Field Detail

      • cpuTime

        private long cpuTime
      • clockTime

        private long clockTime
      • peakMem

        private long peakMem
      • collectionTime

        private long collectionTime
    • Constructor Detail

      • Footprint

        public Footprint()
      • Footprint

        public Footprint​(Footprint base)
        uses deltas from base for cpuTime and clockTime (but not peakMemory)
    • Method Detail

      • pullData

        private void pullData()
      • getCpuTime

        public long getCpuTime()
      • getClockTime

        public long getClockTime()
      • getPeakMemory

        public long getPeakMemory()
      • getCollectionTime

        public long getCollectionTime()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • main

        public static void main​(java.lang.String[] argv)