contrib/perf.py
changeset 43121 ce315b1fc9a7
parent 43120 97f80dd21312
child 43122 436a6a31df38
equal deleted inserted replaced
43120:97f80dd21312 43121:ce315b1fc9a7
  1101     fm.end()
  1101     fm.end()
  1102 
  1102 
  1103 
  1103 
  1104 @command(b'perfdirstate', formatteropts)
  1104 @command(b'perfdirstate', formatteropts)
  1105 def perfdirstate(ui, repo, **opts):
  1105 def perfdirstate(ui, repo, **opts):
       
  1106     """benchmap the time necessary to load a dirstate from scratch
       
  1107 
       
  1108     The dirstate is loaded to the point were a "contains" request can be
       
  1109     answered.
       
  1110     """
  1106     opts = _byteskwargs(opts)
  1111     opts = _byteskwargs(opts)
  1107     timer, fm = gettimer(ui, opts)
  1112     timer, fm = gettimer(ui, opts)
  1108     b"a" in repo.dirstate
  1113     b"a" in repo.dirstate
  1109 
  1114 
  1110     def d():
  1115     def d():