author | Boris Feld <boris.feld@octobus.net> |
Thu, 22 Nov 2018 23:48:44 +0100 | |
changeset 40721 | 0adc2c0a0792 |
parent 40720 | 0a3cc351d718 |
child 40722 | 0800d9e6e216 |
contrib/perf.py | file | annotate | diff | comparison | revisions |
--- a/contrib/perf.py Fri Nov 23 02:08:01 2018 +0100 +++ b/contrib/perf.py Thu Nov 22 23:48:44 2018 +0100 @@ -276,6 +276,8 @@ return functools.partial(_timer, fm, displayall=displayall), fm def stub_timer(fm, func, setup=None, title=None): + if setup is not None: + setup() func() @contextlib.contextmanager