org.objectweb.proactive.core.util.profiling
Class PAProfilerEngine

java.lang.Object
  extended byorg.objectweb.proactive.core.util.profiling.PAProfilerEngine
All Implemented Interfaces:
java.lang.Runnable

public class PAProfilerEngine
extends java.lang.Object
implements java.lang.Runnable

The Engine used for profiling code It creates profilers on request and keep them on a list It also registers itself to run when the JVM shutdowns and dump the results of the profilers


Method Summary
static Timer createTimer()
          Create a profiler of default type
 void dump()
          Call dump on all profilers registered in this engine
static void main(java.lang.String[] args)
           
static void registerTimer(Timer papr)
          Add profilers to be managed by this profiler engine
static boolean removeTimer(Timer papr)
          Remove a profiler from this engine It's dump() method will thus never be called
 void run()
          This method starts when a shutdown of the VM is initiated
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createTimer

public static Timer createTimer()
Create a profiler of default type

Returns:
an AverageTimeProfiler

registerTimer

public static void registerTimer(Timer papr)
Add profilers to be managed by this profiler engine

Parameters:
papr -

removeTimer

public static boolean removeTimer(Timer papr)
Remove a profiler from this engine It's dump() method will thus never be called

Parameters:
papr -

run

public void run()
This method starts when a shutdown of the VM is initiated

Specified by:
run in interface java.lang.Runnable

dump

public void dump()
Call dump on all profilers registered in this engine


main

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


Copyright ? April 2005 INRIA All Rights Reserved.