org.webmacro.profile
Class ProfileSystem

java.lang.Object
  extended byorg.webmacro.profile.ProfileSystem

public class ProfileSystem
extends java.lang.Object


Constructor Summary
ProfileSystem()
           
 
Method Summary
 void destroy()
          Shut down the profiling system.
static ProfileSystem getInstance()
           
 ProfileCategory[] getProfileCategories()
          Return an array of the ProfileCategory objects that are being managed.
 ProfileCategory newProfileCategory(java.lang.String name, int rate, int time)
          Return a ProfileCategory for the category 'name'.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProfileSystem

public ProfileSystem()
Method Detail

getInstance

public static final ProfileSystem getInstance()

newProfileCategory

public ProfileCategory newProfileCategory(java.lang.String name,
                                          int rate,
                                          int time)
Return a ProfileCategory for the category 'name'. If a null is returned from this method then no profiling is being done for the supplied name.


getProfileCategories

public ProfileCategory[] getProfileCategories()
Return an array of the ProfileCategory objects that are being managed. This may return null if there is no profiling being done.


destroy

public void destroy()
Shut down the profiling system. This method allows a profiling system to save its settings to a file or database. It will be called by the application when the application is about to terminate the module containing the profiling system.