org.jpos.util
Class Profiler
java.lang.Object
org.jpos.util.Profiler
- All Implemented Interfaces:
- Loggeable
public class Profiler
- extends Object
- implements Loggeable
Simple Profiler
- Version:
- $Id$
- Author:
- Alejandro P. Revilla, David D. Bergert
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TO_MILLIS
public static final int TO_MILLIS
- See Also:
- Constant Field Values
Profiler
public Profiler()
reset
public void reset()
- reset timers
checkPoint
public void checkPoint(String detail)
- mark checkpoint
- Parameters:
detail - checkpoint information
getElapsed
public long getElapsed()
- Returns:
- total elapsed time since last reset
getPartial
public long getPartial()
- Returns:
- parcial elapsed time since last reset
dump
public void dump(PrintStream p,
String indent)
- Specified by:
dump in interface Loggeable
getEntry
public Profiler.Entry getEntry(String eventName)
Copyright © 1998-2012 jPOS.org. All Rights Reserved.