FindBugs™ 1.3.9

edu.umd.cs.findbugs
Class Footprint

java.lang.Object
  extended by edu.umd.cs.findbugs.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.

Author:
Brian Cole
See Also:
FindBugs

Nested Class Summary
static class Footprint.CollectionBeanWrapper
          Wrapper so that possible NoClassDefFoundError can be caught.
static class Footprint.MemoryBeanWrapper
          Wrapper so that possible NoClassDefFoundError can be caught.
static class Footprint.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
 long getClockTime()
           
 long getCollectionTime()
           
 long getCpuTime()
           
 long getPeakMemory()
           
static void main(java.lang.String[] argv)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

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:
toString in class java.lang.Object

main

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

FindBugs™ 1.3.9

FindBugs™ is licenced under the LGPL. Copyright © 2006 University of Maryland.