contrib/perf.py
changeset 16386 ccc173d0914e
parent 16309 e0c1b3ef7c36
child 16403 efae1fea4bbd
--- 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, []),