Mercurial > public > mercurial-scm > hg-stable
diff contrib/perf.py @ 38693:9b6a708f2263
perf: document the perfmanifest command
author | Boris Feld <boris.feld@octobus.net> |
---|---|
date | Wed, 11 Jul 2018 10:46:15 +0200 |
parents | 9df777d7f061 |
children | 55101513ed94 |
line wrap: on
line diff
--- a/contrib/perf.py Sat Jun 09 22:38:29 2018 +0900 +++ b/contrib/perf.py Wed Jul 11 10:46:15 2018 +0200 @@ -774,6 +774,10 @@ @command('perfmanifest', [], 'REV') def perfmanifest(ui, repo, rev, **opts): + """benchmark the time to read a manifest from disk and return a usable + dict-like object + + Manifest caches are cleared before retrieval.""" timer, fm = gettimer(ui, opts) ctx = scmutil.revsingle(repo, rev, rev) t = ctx.manifestnode()