hybrid.profiling.make_count#

class make_count(counters, prefix=None, loglevel=0)[source]#

Generate counter increment callable object specialized for handling (bound to) counters in the provided counters dictionary.

Parameters:

counters (dict) – Counters storage.

Example:

counters = {}
count = make_count(counters)

for _ in range(10):
    count('f')

# counters['f'] == 10
__init__(counters, prefix=None, loglevel=0)[source]#

Methods

__init__(counters[, prefix, loglevel])