def time_calls_with_dims(**dims):
def time_wrapper(fn):<EOL><INDENT>@functools.wraps(fn)<EOL>def fn_wrapper(*args, **kwargs):<EOL><INDENT>_timer = timer("<STR_LIT>" %<EOL>pyformance.registry.get_qualname(fn), **dims)<EOL>with _timer.time(fn=pyformance.registry.get_qualname(fn)):<EOL><INDENT>return fn(*args, **kwargs)<EOL><DEDENT><DEDENT>return fn_wrapper<EOL><DEDENT>return time_wrapper<EOL>
Decorator to time the execution of the function with dimensions.