Package motherhamster :: Module profiler :: Class FunctionTracker

Class FunctionTracker



object --+
         |
        FunctionTracker

Tracks calls and time in calls to a function

Nested Classes
  ParentObjNameProperty
Instance Methods
 
__init__(self, parent, function_name, parent_name=None)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
 
object_name(...)
 
activate(self)
 
deactivate(self)
 
is_active(self)
 
__get__(self, obj, objtype=None)
 
__call__(self, *args, **kwargs)
 
advance(self)
 
calls(self, index)
 
nested(self, index)
 
owned(self, index)
 
call_avg(self, count)
 
nested_avg(self, count)
 
owned_avg(self, count)
 
total_avg(self, count)

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Class Variables
  SampleCount = 300
  Index = 0
Properties

Inherited from object: __class__

Method Details

__init__(self, parent, function_name, parent_name=None)
(Constructor)

 
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
Overrides: object.__init__
(inherited documentation)