Submitter | Boris Feld |
---|---|
Date | Nov. 26, 2018, 6:44 p.m. |
Message ID | <0adc2c0a0792d4a0015e.1543257874@localhost.localdomain> |
Download | mbox | patch |
Permalink | /patch/36794/ |
State | Accepted |
Headers | show |
Comments
Patch
diff --git a/contrib/perf.py b/contrib/perf.py --- a/contrib/perf.py +++ b/contrib/perf.py @@ -276,6 +276,8 @@ def gettimer(ui, opts=None): 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