com.cloudtran.util
Class OperationTimer

java.lang.Object
  extended by com.cloudtran.util.OperationTimer

public class OperationTimer
extends Object

This records the timer and logs on the constructor. Then it records the time on the 'mark()'.


Field Summary
static boolean IN_MEMORY_OPTIMER
           
static long OPTIMER_END_COUNT
           
static long OPTIMER_START_COUNT
           
 
Constructor Summary
OperationTimer(String msg)
           
 
Method Summary
static void dumpLogs()
           
static void main(String[] args)
           
 void mark()
           
 void mark(String s)
           
static void requestOptimerDump()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

IN_MEMORY_OPTIMER

public static final boolean IN_MEMORY_OPTIMER

OPTIMER_START_COUNT

public static volatile long OPTIMER_START_COUNT

OPTIMER_END_COUNT

public static volatile long OPTIMER_END_COUNT
Constructor Detail

OperationTimer

public OperationTimer(String msg)
Method Detail

mark

public void mark(String s)

mark

public void mark()

dumpLogs

public static void dumpLogs()

main

public static void main(String[] args)

requestOptimerDump

public static void requestOptimerDump()