uk.nominet.catnap.profile
Class CatnapProfilingCallback

java.lang.Object
  extended byuk.nominet.catnap.profile.CatnapProfilingCallback

public abstract class CatnapProfilingCallback
extends java.lang.Object

Special callback for wrapping arbitrary blocks of code for profiling Essentially initialises the Catnap Profile Manager and ensures profiling is switched off afterwards


Constructor Summary
CatnapProfilingCallback()
           
 
Method Summary
abstract  void doWithProfiling()
          Callback method which must be implemented with the block of code to be profiled.
 CatnapProfile execute()
          Execute the callback, starting the profile manager and returning the profile when complete (ensuring that whatever happens we tidy up the profile manager at the end)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CatnapProfilingCallback

public CatnapProfilingCallback()
Method Detail

doWithProfiling

public abstract void doWithProfiling()
Callback method which must be implemented with the block of code to be profiled.


execute

public CatnapProfile execute()
Execute the callback, starting the profile manager and returning the profile when complete (ensuring that whatever happens we tidy up the profile manager at the end)