Package ivs :: Package aux :: Module decorators :: Class countcalls
[hide private]
[frames] | no frames]

Class countcalls

source code


Keeps track of the number of times a function is called.

Instance Methods [hide private]
 
__init__(self, f)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
__call__(self, *args, **kwargs) source code

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

Static Methods [hide private]
 
count(f)
Return the number of times the function f was called.
source code
 
counts()
Return a dict of {function: # of calls} for all registered functions.
source code
Class Variables [hide private]
  __instances = {}
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, f)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)