edu.umd.cs.findbugs

Class Footprint

public class Footprint extends 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.

Author: Brian Cole

See Also: FindBugs

Nested Class Summary
static classFootprint.CollectionBeanWrapper
Wrapper so that possbile NoClassDefFoundError can be caught.
static classFootprint.MemoryBeanWrapper
Wrapper so that possbile NoClassDefFoundError can be caught.
static classFootprint.OperatingSystemBeanWrapper
Wrapper so that possbile NoClassDefFoundError can be caught.
Constructor Summary
Footprint()
Footprint(Footprint base)
uses deltas from base for cpuTime and clockTime (but not peakMemory)
Method Summary
longgetClockTime()
longgetCollectionTime()
longgetCpuTime()
longgetPeakMemory()
static voidmain(String[] argv)

Constructor Detail

Footprint

public Footprint()

Footprint

public Footprint(Footprint base)
uses deltas from base for cpuTime and clockTime (but not peakMemory)

Method Detail

getClockTime

public long getClockTime()

getCollectionTime

public long getCollectionTime()

getCpuTime

public long getCpuTime()

getPeakMemory

public long getPeakMemory()

main

public static void main(String[] argv)
FindBugs™ is licenced under the LGPL. Copyright © 2006 University of Maryland.