Submitter | Boris Feld |
---|---|
Date | Nov. 23, 2018, 2:09 p.m. |
Message ID | <1ab87863dc79a8e3139c.1542982144@localhost.localdomain> |
Download | mbox | patch |
Permalink | /patch/36737/ |
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