contrib/perf.py
changeset 19378 9de689d20230
parent 19322 ff1586a3adc5
child 19711 0a881ea4bed4
equal deleted inserted replaced
19377:0cb996ee8c6d 19378:9de689d20230
   173 
   173 
   174 @command('perfmanifest')
   174 @command('perfmanifest')
   175 def perfmanifest(ui, repo):
   175 def perfmanifest(ui, repo):
   176     def d():
   176     def d():
   177         t = repo.manifest.tip()
   177         t = repo.manifest.tip()
   178         m = repo.manifest.read(t)
   178         repo.manifest.read(t)
   179         repo.manifest.mapcache = None
   179         repo.manifest.mapcache = None
   180         repo.manifest._cache = None
   180         repo.manifest._cache = None
   181     timer(d)
   181     timer(d)
   182 
   182 
   183 @command('perfchangeset')
   183 @command('perfchangeset')
   184 def perfchangeset(ui, repo, rev):
   184 def perfchangeset(ui, repo, rev):
   185     n = repo[rev].node()
   185     n = repo[rev].node()
   186     def d():
   186     def d():
   187         c = repo.changelog.read(n)
   187         repo.changelog.read(n)
   188         #repo.changelog._cache = None
   188         #repo.changelog._cache = None
   189     timer(d)
   189     timer(d)
   190 
   190 
   191 @command('perfindex')
   191 @command('perfindex')
   192 def perfindex(ui, repo):
   192 def perfindex(ui, repo):