contrib/perf.py
changeset 40738 94d76ddac40a
parent 40737 3c98c339c6ea
child 40739 30f443d34a7d
equal deleted inserted replaced
40737:3c98c339c6ea 40738:94d76ddac40a
  2225 
  2225 
  2226 @command(b'perfbranchmapload', [
  2226 @command(b'perfbranchmapload', [
  2227      (b'f', b'filter', b'', b'Specify repoview filter'),
  2227      (b'f', b'filter', b'', b'Specify repoview filter'),
  2228      (b'', b'list', False, b'List brachmap filter caches'),
  2228      (b'', b'list', False, b'List brachmap filter caches'),
  2229     ] + formatteropts)
  2229     ] + formatteropts)
  2230 def perfbranchmapread(ui, repo, filter=b'', list=False, **opts):
  2230 def perfbranchmapload(ui, repo, filter=b'', list=False, **opts):
  2231     """benchmark reading the branchmap"""
  2231     """benchmark reading the branchmap"""
  2232     opts = _byteskwargs(opts)
  2232     opts = _byteskwargs(opts)
  2233 
  2233 
  2234     if list:
  2234     if list:
  2235         for name, kind, st in repo.cachevfs.readdir(stat=True):
  2235         for name, kind, st in repo.cachevfs.readdir(stat=True):