contrib/perf.py
branchstable
changeset 10493 283f3b413f19
parent 10282 08a0f04b56bd
child 11694 bf49d48e4602
equal deleted inserted replaced
10492:0e64d814d7d0 10493:283f3b413f19
    40         except:
    40         except:
    41             timer(lambda: len(list(cmdutil.walk(repo, pats, {}))))
    41             timer(lambda: len(list(cmdutil.walk(repo, pats, {}))))
    42 
    42 
    43 def perfstatus(ui, repo, *pats):
    43 def perfstatus(ui, repo, *pats):
    44     #m = match.always(repo.root, repo.getcwd())
    44     #m = match.always(repo.root, repo.getcwd())
    45     #timer(lambda: sum(map(len, repo.dirstate.status(m, False, False, False))))
    45     #timer(lambda: sum(map(len, repo.dirstate.status(m, [], False, False, False))))
    46     timer(lambda: sum(map(len, repo.status())))
    46     timer(lambda: sum(map(len, repo.status())))
    47 
    47 
    48 def perfheads(ui, repo):
    48 def perfheads(ui, repo):
    49     timer(lambda: len(repo.changelog.heads()))
    49     timer(lambda: len(repo.changelog.heads()))
    50 
    50