Show More
@@ -525,3 +525,12 b' def perfbranchmap(ui, repo, full=False):' | |||||
525 | branchmap.read = oldread |
|
525 | branchmap.read = oldread | |
526 | branchmap.branchcache.write = oldwrite |
|
526 | branchmap.branchcache.write = oldwrite | |
527 | fm.end() |
|
527 | fm.end() | |
|
528 | ||||
|
529 | @command('perfloadmarkers') | |||
|
530 | def perfloadmarkers(ui, repo): | |||
|
531 | """benchmark the time to parse the on-disk markers for a repo | |||
|
532 | ||||
|
533 | Result is the number of markers in the repo.""" | |||
|
534 | timer, fm = gettimer(ui) | |||
|
535 | timer(lambda: len(obsolete.obsstore(repo.sopener))) | |||
|
536 | fm.end() |
General Comments 0
You need to be logged in to leave comments.
Login now