quemb.shared.helper.FunctionTimer

class quemb.shared.helper.FunctionTimer(stats=NOTHING)

Attributes

stats: dict

Methods

__init__([stats])

Method generated by attrs for class FunctionTimer.

print_top([n])

Print the top-n functions by total accumulated time.

timeit(func)

Decorator to time a function and record stats using Timer.