contrib/perf.py
changeset 16386 ccc173d0914e
parent 16309 e0c1b3ef7c36
child 16403 efae1fea4bbd
equal deleted inserted replaced
16385:e501f45b0eba 16386:ccc173d0914e
   131     timer(lambda: commands.log(ui, repo, rev=[], date='', user='',
   131     timer(lambda: commands.log(ui, repo, rev=[], date='', user='',
   132                                template='{date|shortdate} [{rev}:{node|short}]'
   132                                template='{date|shortdate} [{rev}:{node|short}]'
   133                                ' {author|person}: {desc|firstline}\n'))
   133                                ' {author|person}: {desc|firstline}\n'))
   134     ui.popbuffer()
   134     ui.popbuffer()
   135 
   135 
       
   136 def perfcca(ui, repo):
       
   137     timer(lambda: scmutil.casecollisionauditor(ui, False, repo[None]))
       
   138 
   136 def perfdiffwd(ui, repo):
   139 def perfdiffwd(ui, repo):
   137     """Profile diff of working directory changes"""
   140     """Profile diff of working directory changes"""
   138     options = {
   141     options = {
   139         'w': 'ignore_all_space',
   142         'w': 'ignore_all_space',
   140         'b': 'ignore_space_change',
   143         'b': 'ignore_space_change',
   159             r.revision(r.node(x))
   162             r.revision(r.node(x))
   160 
   163 
   161     timer(d)
   164     timer(d)
   162 
   165 
   163 cmdtable = {
   166 cmdtable = {
       
   167     'perfcca': (perfcca, []),
   164     'perflookup': (perflookup, []),
   168     'perflookup': (perflookup, []),
   165     'perfnodelookup': (perfnodelookup, []),
   169     'perfnodelookup': (perfnodelookup, []),
   166     'perfparents': (perfparents, []),
   170     'perfparents': (perfparents, []),
   167     'perfstartup': (perfstartup, []),
   171     'perfstartup': (perfstartup, []),
   168     'perfstatus': (perfstatus, []),
   172     'perfstatus': (perfstatus, []),