mirror of
https://github.com/facebook/sapling.git
synced 2024-12-28 23:54:12 +03:00
perf: add a perfbookmarks command
A new command dedicated to benchmark of bookmark initialization.
This commit is contained in:
parent
43a12c3e5f
commit
78ab1d5356
@ -467,6 +467,16 @@ def perfancestorset(ui, repo, revset, **opts):
|
|||||||
timer(d)
|
timer(d)
|
||||||
fm.end()
|
fm.end()
|
||||||
|
|
||||||
|
@command('perfbookmarks', formatteropts)
|
||||||
|
def perfbookmarks(ui, repo, **opts):
|
||||||
|
"""benchmark parsing bookmarks from disk to memory"""
|
||||||
|
timer, fm = gettimer(ui, opts)
|
||||||
|
def d():
|
||||||
|
clearfilecache(repo, '_bookmarks')
|
||||||
|
repo._bookmarks
|
||||||
|
timer(d)
|
||||||
|
fm.end()
|
||||||
|
|
||||||
@command('perfchangegroupchangelog', formatteropts +
|
@command('perfchangegroupchangelog', formatteropts +
|
||||||
[('', 'version', '02', 'changegroup version'),
|
[('', 'version', '02', 'changegroup version'),
|
||||||
('r', 'rev', '', 'revisions to add to changegroup')])
|
('r', 'rev', '', 'revisions to add to changegroup')])
|
||||||
|
@ -51,6 +51,8 @@ perfstatus
|
|||||||
(no help text available)
|
(no help text available)
|
||||||
perfannotate (no help text available)
|
perfannotate (no help text available)
|
||||||
perfbdiff benchmark a bdiff between revisions
|
perfbdiff benchmark a bdiff between revisions
|
||||||
|
perfbookmarks
|
||||||
|
benchmark parsing bookmarks from disk to memory
|
||||||
perfbranchmap
|
perfbranchmap
|
||||||
benchmark the update of a branchmap
|
benchmark the update of a branchmap
|
||||||
perfcca (no help text available)
|
perfcca (no help text available)
|
||||||
@ -122,6 +124,7 @@ perfstatus
|
|||||||
$ hg perfannotate a
|
$ hg perfannotate a
|
||||||
$ hg perfbdiff -c 1
|
$ hg perfbdiff -c 1
|
||||||
$ hg perfbdiff --alldata 1
|
$ hg perfbdiff --alldata 1
|
||||||
|
$ hg perfbookmarks
|
||||||
$ hg perfbranchmap
|
$ hg perfbranchmap
|
||||||
$ hg perfcca
|
$ hg perfcca
|
||||||
$ hg perfchangegroupchangelog
|
$ hg perfchangegroupchangelog
|
||||||
|
Loading…
Reference in New Issue
Block a user