##// END OF EJS Templates
perfphases: add a flag to also include file access time...
marmoute -
r32732:e36569bd default
parent child Browse files
Show More
@@ -591,12 +591,19 b' def perfpathcopies(ui, repo, rev1, rev2,'
591 timer(d)
591 timer(d)
592 fm.end()
592 fm.end()
593
593
594 @command('perfphases', [], "")
594 @command('perfphases',
595 [('', 'full', False, 'include file reading time too'),
596 ], "")
595 def perfphases(ui, repo, **opts):
597 def perfphases(ui, repo, **opts):
596 """benchmark phasesets computation"""
598 """benchmark phasesets computation"""
597 timer, fm = gettimer(ui, opts)
599 timer, fm = gettimer(ui, opts)
598 phases = repo._phasecache
600 _phases = repo._phasecache
601 full = opts.get('full')
599 def d():
602 def d():
603 phases = _phases
604 if full:
605 clearfilecache(repo, '_phasecache')
606 phases = repo._phasecache
600 phases.invalidate()
607 phases.invalidate()
601 phases.loadphaserevs(repo)
608 phases.loadphaserevs(repo)
602 timer(d)
609 timer(d)
General Comments 0
You need to be logged in to leave comments. Login now