comparison contrib/perf.py @ 43123:69301b79fd36

perf: document `perfdirstatedirs`
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Tue, 08 Oct 2019 01:47:35 -0400
parents 436a6a31df38
children 100e7e0cdaad
comparison
equal deleted inserted replaced
43122:436a6a31df38 43123:69301b79fd36
1122 fm.end() 1122 fm.end()
1123 1123
1124 1124
1125 @command(b'perfdirstatedirs', formatteropts) 1125 @command(b'perfdirstatedirs', formatteropts)
1126 def perfdirstatedirs(ui, repo, **opts): 1126 def perfdirstatedirs(ui, repo, **opts):
1127 """benchmap a 'dirstate.hasdir' call from an empty `dirs` cache
1128 """
1127 opts = _byteskwargs(opts) 1129 opts = _byteskwargs(opts)
1128 timer, fm = gettimer(ui, opts) 1130 timer, fm = gettimer(ui, opts)
1129 b"a" in repo.dirstate 1131 b"a" in repo.dirstate
1130 1132
1131 def d(): 1133 def d():