Class Footprint
java.lang.Object
edu.umd.cs.findbugs.Footprint
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:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classWrapper so that possible NoClassDefFoundError can be caught.static classWrapper so that possible NoClassDefFoundError can be caught.static classWrapper so that possible NoClassDefFoundError can be caught. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final intprivate longprivate longprivate longprivate static final intprivate static final intprivate longprivate static final int -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
NOCLASSDEF_ERROR
private static final int NOCLASSDEF_ERROR- See Also:
-
CLASSCAST_ERROR
private static final int CLASSCAST_ERROR- See Also:
-
ERROR_ERROR
private static final int ERROR_ERROR- See Also:
-
RUNTIME_EXCEPTION
private static final int RUNTIME_EXCEPTION- See Also:
-
cpuTime
private long cpuTime -
clockTime
private long clockTime -
peakMem
private long peakMem -
collectionTime
private long collectionTime
-
-
Constructor Details
-
Footprint
public Footprint() -
Footprint
uses deltas from base for cpuTime and clockTime (but not peakMemory)
-
-
Method Details
-
pullData
private void pullData() -
getCpuTime
public long getCpuTime() -
getClockTime
public long getClockTime() -
getPeakMemory
public long getPeakMemory() -
getCollectionTime
public long getCollectionTime() -
toString
-
main
-