762 b'perfstatus', |
762 b'perfstatus', |
763 [(b'u', b'unknown', False, b'ask status to look for unknown files')] |
763 [(b'u', b'unknown', False, b'ask status to look for unknown files')] |
764 + formatteropts, |
764 + formatteropts, |
765 ) |
765 ) |
766 def perfstatus(ui, repo, **opts): |
766 def perfstatus(ui, repo, **opts): |
|
767 """benchmark the performance of a single status call |
|
768 |
|
769 The repository data are preserved between each call. |
|
770 |
|
771 By default, only the status of the tracked file are requested. If |
|
772 `--unknown` is passed, the "unknown" files are also tracked. |
|
773 """ |
767 opts = _byteskwargs(opts) |
774 opts = _byteskwargs(opts) |
768 # m = match.always(repo.root, repo.getcwd()) |
775 # m = match.always(repo.root, repo.getcwd()) |
769 # timer(lambda: sum(map(len, repo.dirstate.status(m, [], False, False, |
776 # timer(lambda: sum(map(len, repo.dirstate.status(m, [], False, False, |
770 # False)))) |
777 # False)))) |
771 timer, fm = gettimer(ui, opts) |
778 timer, fm = gettimer(ui, opts) |