Acspy.Util.Profiler
index
/alma/ACS-2016.6/ACSSW/lib/python/site-packages/Acspy/Util/Profiler.py

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

 
Modules
       
time

 
Classes
       
__builtin__.object
Profiler

 
class Profiler(__builtin__.object)
    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 descriptors defined here:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

 
Data
        __revision__ = '$Id: Profiler.py,v 1.1.1.1 2012/03/07 17:40:45 acaproni Exp $'