perf: add case collision auditor perf
authorMatt Mackall <mpm@selenic.com>
Tue, 10 Apr 2012 12:07:16 -0500
changeset 16386 ccc173d0914e
parent 16385 e501f45b0eba
child 16387 c481761033bd
perf: add case collision auditor perf
contrib/perf.py
--- a/contrib/perf.py	Tue Apr 10 12:07:14 2012 -0500
+++ b/contrib/perf.py	Tue Apr 10 12:07:16 2012 -0500
@@ -133,6 +133,9 @@
                                ' {author|person}: {desc|firstline}\n'))
     ui.popbuffer()
 
+def perfcca(ui, repo):
+    timer(lambda: scmutil.casecollisionauditor(ui, False, repo[None]))
+
 def perfdiffwd(ui, repo):
     """Profile diff of working directory changes"""
     options = {
@@ -161,6 +164,7 @@
     timer(d)
 
 cmdtable = {
+    'perfcca': (perfcca, []),
     'perflookup': (perflookup, []),
     'perfnodelookup': (perfnodelookup, []),
     'perfparents': (perfparents, []),