changeset 16386:ccc173d0914e

perf: add case collision auditor perf
author Matt Mackall <mpm@selenic.com>
date Tue, 10 Apr 2012 12:07:16 -0500
parents e501f45b0eba
children c481761033bd
files contrib/perf.py
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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, []),