org.apache.pig.tools.timer
Class PerformanceTimerFactory

java.lang.Object
  extended by org.apache.pig.tools.timer.PerformanceTimerFactory

public class PerformanceTimerFactory
extends Object


Method Summary
 void dumpTimers()
           
 void dumpTimers(PrintStream out)
          Call print on all of the known performance timers.
static PerformanceTimerFactory getPerfTimerFactory()
          Get the timer factory.
 PerformanceTimer getTimer(String name)
          Get a performance timer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getPerfTimerFactory

public static PerformanceTimerFactory getPerfTimerFactory()
Get the timer factory.

Returns:
timer factory.

getTimer

public PerformanceTimer getTimer(String name)
Get a performance timer. If the indicated timer does not exist, it will be created. If a timer of that name already exists, it will be returned.

Parameters:
name - Name of the timer to return.
Returns:
the timer.

dumpTimers

public void dumpTimers(PrintStream out)
Call print on all of the known performance timers.

Parameters:
out - output stream to dump to

dumpTimers

public void dumpTimers()


Copyright © 2007-2012 The Apache Software Foundation