contrib/perf.py
changeset 43120 97f80dd21312
parent 43117 8ff1ecfadcd1
child 43121 ce315b1fc9a7
equal deleted inserted replaced
43119:c9093ae8d6c4 43120:97f80dd21312
   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)