contrib/perf.py
changeset 19292 e0aa6fff8f02
parent 18877 2e9fe9e2671f
child 19322 ff1586a3adc5
--- a/contrib/perf.py	Thu May 30 19:26:56 2013 -0700
+++ b/contrib/perf.py	Thu May 30 19:29:03 2013 -0700
@@ -45,6 +45,11 @@
         except Exception:
             timer(lambda: len(list(cmdutil.walk(repo, pats, {}))))
 
+@command('perfannotate')
+def perfannotate(ui, repo, f):
+    fc = repo['.'][f]
+    timer(lambda: len(fc.annotate(True)))
+
 @command('perfstatus',
          [('u', 'unknown', False,
            'ask status to look for unknown files')])