(fn)
| 32 | |
| 33 | |
| 34 | def profiled_function(fn): |
| 35 | |
| 36 | @functools.wraps(fn) |
| 37 | def wrapped(*args, **kwargs): |
| 38 | with Timer(fn.__name__): |
| 39 | return fn(*args, **kwargs) |
| 40 | |
| 41 | return wrapped |
| 42 | |
| 43 | |
| 44 | class Timer(object): |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…