# HG changeset patch # User Matt Mackall # Date 2012-04-10 17:07:16 # Node ID ccc173d0914ea384da2fbe12180118855c5d3de3 # Parent e501f45b0eba90e8ff71466404e350688a941172 perf: add case collision auditor perf diff --git a/contrib/perf.py b/contrib/perf.py --- a/contrib/perf.py +++ b/contrib/perf.py @@ -133,6 +133,9 @@ def perftemplating(ui, repo): ' {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 @@ def perfrevlog(ui, repo, file_, **opts): timer(d) cmdtable = { + 'perfcca': (perfcca, []), 'perflookup': (perflookup, []), 'perfnodelookup': (perfnodelookup, []), 'perfparents': (perfparents, []),