Package edu.umd.cs.findbugs
Class Footprint
- java.lang.Object
-
- edu.umd.cs.findbugs.Footprint
-
public class Footprint extends java.lang.ObjectClass 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.- Author:
- Brian Cole
- See Also:
FindBugs
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classFootprint.CollectionBeanWrapperWrapper so that possible NoClassDefFoundError can be caught.static classFootprint.MemoryBeanWrapperWrapper so that possible NoClassDefFoundError can be caught.static classFootprint.OperatingSystemBeanWrapperWrapper so that possible NoClassDefFoundError can be caught.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetClockTime()longgetCollectionTime()longgetCpuTime()longgetPeakMemory()static voidmain(java.lang.String[] argv)java.lang.StringtoString()
-
-
-
Constructor Detail
-
Footprint
public Footprint()
-
Footprint
public Footprint(Footprint base)
uses deltas from base for cpuTime and clockTime (but not peakMemory)
-
-
Method Detail
-
getCpuTime
public long getCpuTime()
-
getClockTime
public long getClockTime()
-
getPeakMemory
public long getPeakMemory()
-
getCollectionTime
public long getCollectionTime()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
main
public static void main(java.lang.String[] argv)
-
-