##// END OF EJS Templates
perf: add a `clear-revlogs` flag to `perfbookmarks`...
Boris Feld -
r40777:82c189c5 default
parent child Browse files
Show More
@@ -581,13 +581,19 b' def perfancestorset(ui, repo, revset, **'
581 timer(d)
581 timer(d)
582 fm.end()
582 fm.end()
583
583
584 @command(b'perfbookmarks', formatteropts)
584 @command(b'perfbookmarks', formatteropts +
585 [
586 (b'', b'clear-revlogs', False, b'refresh changelog and manifest'),
587 ])
585 def perfbookmarks(ui, repo, **opts):
588 def perfbookmarks(ui, repo, **opts):
586 """benchmark parsing bookmarks from disk to memory"""
589 """benchmark parsing bookmarks from disk to memory"""
587 opts = _byteskwargs(opts)
590 opts = _byteskwargs(opts)
588 timer, fm = gettimer(ui, opts)
591 timer, fm = gettimer(ui, opts)
589
592
593 clearrevlogs = opts[b'clear_revlogs']
590 def s():
594 def s():
595 if clearrevlogs:
596 clearchangelog(repo)
591 clearfilecache(repo, b'_bookmarks')
597 clearfilecache(repo, b'_bookmarks')
592 def d():
598 def d():
593 repo._bookmarks
599 repo._bookmarks
General Comments 0
You need to be logged in to leave comments. Login now