Acspy.Util.Profiler
index
/diska/alma_tmp/ACS/LGPL/CommonSoftware/acspy/src/Acspy/Util/Profiler.py

Provides profiling tools to benchmark functions/methods.
 
TODO:
- calculate meaningful data like standard deviation

 
Modules
       
time

 
Classes
       
Profiler

 
class Profiler
    Profiler is a utility class providing a very simple profiling mechanism.
 
  Methods defined here:
__init__(self)
Constructor.
addData(self, key, value)
Adds extra data to the description.
 
Params: 
    key - a keyword descriptor
    value - value
fullDescription(self, msg)
Prints out a full description of all times that were saved along with
other relevant statistical data.
 
Params: message to be printed out
 
Returns: the full description printed to stdout
 
Raises: Nothing
reset(self)
Resets this objects values.
 
Params: None
 
Returns: Nothing
 
Raises: Nothing
start(self)
Starts a timing operation.
 
Params: None
 
Returns: Nothing
 
Raises: ???
stop(self)
Stops a timing operation. Can only be called after a start invocation.
 
Params: None
 
Returns: the duration of time that has passed since start was
called in ms units

 
Data
        __revision__ = '$Id: Profiler.py,v 1.10 2006/04/05 22:16:17 dfugate Exp $'