Submitter | timeless@mozdev.org |
---|---|
Date | Dec. 8, 2015, 7:07 a.m. |
Message ID | <8e92b61c81221b2dbfd3.1449558446@waste.org> |
Download | mbox | patch |
Permalink | /patch/11928/ |
State | Accepted |
Headers | show |
Comments
Patch
diff --git a/contrib/perf.py b/contrib/perf.py --- a/contrib/perf.py +++ b/contrib/perf.py @@ -11,6 +11,11 @@ cmdtable = {} command = cmdutil.command(cmdtable) +def getlen(ui): + if ui.configbool("perf", "stub"): + return lambda x: 1 + return len + def gettimer(ui, opts=None): """return a timer function and formatter: (timer, formatter)