Show More
@@ -744,7 +744,7 b' def clearchangelog(repo):' | |||||
744 | # perf commands |
|
744 | # perf commands | |
745 |
|
745 | |||
746 |
|
746 | |||
747 | @command(b'perfwalk', formatteropts) |
|
747 | @command(b'perf--walk', formatteropts) | |
748 | def perfwalk(ui, repo, *pats, **opts): |
|
748 | def perfwalk(ui, repo, *pats, **opts): | |
749 | opts = _byteskwargs(opts) |
|
749 | opts = _byteskwargs(opts) | |
750 | timer, fm = gettimer(ui, opts) |
|
750 | timer, fm = gettimer(ui, opts) | |
@@ -759,7 +759,7 b' def perfwalk(ui, repo, *pats, **opts):' | |||||
759 | fm.end() |
|
759 | fm.end() | |
760 |
|
760 | |||
761 |
|
761 | |||
762 | @command(b'perfannotate', formatteropts) |
|
762 | @command(b'perf--annotate', formatteropts) | |
763 | def perfannotate(ui, repo, f, **opts): |
|
763 | def perfannotate(ui, repo, f, **opts): | |
764 | opts = _byteskwargs(opts) |
|
764 | opts = _byteskwargs(opts) | |
765 | timer, fm = gettimer(ui, opts) |
|
765 | timer, fm = gettimer(ui, opts) | |
@@ -769,7 +769,7 b' def perfannotate(ui, repo, f, **opts):' | |||||
769 |
|
769 | |||
770 |
|
770 | |||
771 | @command( |
|
771 | @command( | |
772 | b'perfstatus', |
|
772 | b'perf--status', | |
773 | [ |
|
773 | [ | |
774 | (b'u', b'unknown', False, b'ask status to look for unknown files'), |
|
774 | (b'u', b'unknown', False, b'ask status to look for unknown files'), | |
775 | (b'', b'dirstate', False, b'benchmark the internal dirstate call'), |
|
775 | (b'', b'dirstate', False, b'benchmark the internal dirstate call'), | |
@@ -806,7 +806,7 b' def perfstatus(ui, repo, **opts):' | |||||
806 | fm.end() |
|
806 | fm.end() | |
807 |
|
807 | |||
808 |
|
808 | |||
809 | @command(b'perfaddremove', formatteropts) |
|
809 | @command(b'perf--addremove', formatteropts) | |
810 | def perfaddremove(ui, repo, **opts): |
|
810 | def perfaddremove(ui, repo, **opts): | |
811 | opts = _byteskwargs(opts) |
|
811 | opts = _byteskwargs(opts) | |
812 | timer, fm = gettimer(ui, opts) |
|
812 | timer, fm = gettimer(ui, opts) | |
@@ -837,7 +837,7 b' def clearcaches(cl):' | |||||
837 | cl._nodepos = None |
|
837 | cl._nodepos = None | |
838 |
|
838 | |||
839 |
|
839 | |||
840 | @command(b'perfheads', formatteropts) |
|
840 | @command(b'perf--heads', formatteropts) | |
841 | def perfheads(ui, repo, **opts): |
|
841 | def perfheads(ui, repo, **opts): | |
842 | """benchmark the computation of a changelog heads""" |
|
842 | """benchmark the computation of a changelog heads""" | |
843 | opts = _byteskwargs(opts) |
|
843 | opts = _byteskwargs(opts) | |
@@ -855,7 +855,7 b' def perfheads(ui, repo, **opts):' | |||||
855 |
|
855 | |||
856 |
|
856 | |||
857 | @command( |
|
857 | @command( | |
858 | b'perftags', |
|
858 | b'perf--tags', | |
859 | formatteropts |
|
859 | formatteropts | |
860 | + [ |
|
860 | + [ | |
861 | (b'', b'clear-revlogs', False, b'refresh changelog and manifest'), |
|
861 | (b'', b'clear-revlogs', False, b'refresh changelog and manifest'), | |
@@ -880,7 +880,7 b' def perftags(ui, repo, **opts):' | |||||
880 | fm.end() |
|
880 | fm.end() | |
881 |
|
881 | |||
882 |
|
882 | |||
883 | @command(b'perfancestors', formatteropts) |
|
883 | @command(b'perf--ancestors', formatteropts) | |
884 | def perfancestors(ui, repo, **opts): |
|
884 | def perfancestors(ui, repo, **opts): | |
885 | opts = _byteskwargs(opts) |
|
885 | opts = _byteskwargs(opts) | |
886 | timer, fm = gettimer(ui, opts) |
|
886 | timer, fm = gettimer(ui, opts) | |
@@ -894,7 +894,7 b' def perfancestors(ui, repo, **opts):' | |||||
894 | fm.end() |
|
894 | fm.end() | |
895 |
|
895 | |||
896 |
|
896 | |||
897 | @command(b'perfancestorset', formatteropts) |
|
897 | @command(b'perf--ancestorset', formatteropts) | |
898 | def perfancestorset(ui, repo, revset, **opts): |
|
898 | def perfancestorset(ui, repo, revset, **opts): | |
899 | opts = _byteskwargs(opts) |
|
899 | opts = _byteskwargs(opts) | |
900 | timer, fm = gettimer(ui, opts) |
|
900 | timer, fm = gettimer(ui, opts) | |
@@ -910,7 +910,7 b' def perfancestorset(ui, repo, revset, **' | |||||
910 | fm.end() |
|
910 | fm.end() | |
911 |
|
911 | |||
912 |
|
912 | |||
913 | @command(b'perfdiscovery', formatteropts, b'PATH') |
|
913 | @command(b'perf--discovery', formatteropts, b'PATH') | |
914 | def perfdiscovery(ui, repo, path, **opts): |
|
914 | def perfdiscovery(ui, repo, path, **opts): | |
915 | """benchmark discovery between local repo and the peer at given path""" |
|
915 | """benchmark discovery between local repo and the peer at given path""" | |
916 | repos = [repo, None] |
|
916 | repos = [repo, None] | |
@@ -928,7 +928,7 b' def perfdiscovery(ui, repo, path, **opts' | |||||
928 |
|
928 | |||
929 |
|
929 | |||
930 | @command( |
|
930 | @command( | |
931 | b'perfbookmarks', |
|
931 | b'perf--bookmarks', | |
932 | formatteropts |
|
932 | formatteropts | |
933 | + [ |
|
933 | + [ | |
934 | (b'', b'clear-revlogs', False, b'refresh changelog and manifest'), |
|
934 | (b'', b'clear-revlogs', False, b'refresh changelog and manifest'), | |
@@ -953,7 +953,7 b' def perfbookmarks(ui, repo, **opts):' | |||||
953 | fm.end() |
|
953 | fm.end() | |
954 |
|
954 | |||
955 |
|
955 | |||
956 | @command(b'perfbundleread', formatteropts, b'BUNDLE') |
|
956 | @command(b'perf--bundleread', formatteropts, b'BUNDLE') | |
957 | def perfbundleread(ui, repo, bundlepath, **opts): |
|
957 | def perfbundleread(ui, repo, bundlepath, **opts): | |
958 | """Benchmark reading of bundle files. |
|
958 | """Benchmark reading of bundle files. | |
959 |
|
959 | |||
@@ -1080,7 +1080,7 b' def perfbundleread(ui, repo, bundlepath,' | |||||
1080 |
|
1080 | |||
1081 |
|
1081 | |||
1082 | @command( |
|
1082 | @command( | |
1083 | b'perfchangegroupchangelog', |
|
1083 | b'perf--changegroupchangelog', | |
1084 | formatteropts |
|
1084 | formatteropts | |
1085 | + [ |
|
1085 | + [ | |
1086 | (b'', b'cgversion', b'02', b'changegroup version'), |
|
1086 | (b'', b'cgversion', b'02', b'changegroup version'), | |
@@ -1116,7 +1116,7 b' def perfchangegroupchangelog(ui, repo, c' | |||||
1116 | fm.end() |
|
1116 | fm.end() | |
1117 |
|
1117 | |||
1118 |
|
1118 | |||
1119 | @command(b'perfdirs', formatteropts) |
|
1119 | @command(b'perf--dirs', formatteropts) | |
1120 | def perfdirs(ui, repo, **opts): |
|
1120 | def perfdirs(ui, repo, **opts): | |
1121 | opts = _byteskwargs(opts) |
|
1121 | opts = _byteskwargs(opts) | |
1122 | timer, fm = gettimer(ui, opts) |
|
1122 | timer, fm = gettimer(ui, opts) | |
@@ -1132,7 +1132,7 b' def perfdirs(ui, repo, **opts):' | |||||
1132 |
|
1132 | |||
1133 |
|
1133 | |||
1134 | @command( |
|
1134 | @command( | |
1135 | b'perfdirstate', |
|
1135 | b'perf--dirstate', | |
1136 | [ |
|
1136 | [ | |
1137 | ( |
|
1137 | ( | |
1138 | b'', |
|
1138 | b'', | |
@@ -1195,7 +1195,7 b' def perfdirstate(ui, repo, **opts):' | |||||
1195 | fm.end() |
|
1195 | fm.end() | |
1196 |
|
1196 | |||
1197 |
|
1197 | |||
1198 | @command(b'perfdirstatedirs', formatteropts) |
|
1198 | @command(b'perf--dirstatedirs', formatteropts) | |
1199 | def perfdirstatedirs(ui, repo, **opts): |
|
1199 | def perfdirstatedirs(ui, repo, **opts): | |
1200 | """benchmap a 'dirstate.hasdir' call from an empty `dirs` cache""" |
|
1200 | """benchmap a 'dirstate.hasdir' call from an empty `dirs` cache""" | |
1201 | opts = _byteskwargs(opts) |
|
1201 | opts = _byteskwargs(opts) | |
@@ -1212,7 +1212,7 b' def perfdirstatedirs(ui, repo, **opts):' | |||||
1212 | fm.end() |
|
1212 | fm.end() | |
1213 |
|
1213 | |||
1214 |
|
1214 | |||
1215 | @command(b'perfdirstatefoldmap', formatteropts) |
|
1215 | @command(b'perf--dirstatefoldmap', formatteropts) | |
1216 | def perfdirstatefoldmap(ui, repo, **opts): |
|
1216 | def perfdirstatefoldmap(ui, repo, **opts): | |
1217 | """benchmap a `dirstate._map.filefoldmap.get()` request |
|
1217 | """benchmap a `dirstate._map.filefoldmap.get()` request | |
1218 |
|
1218 | |||
@@ -1233,7 +1233,7 b' def perfdirstatefoldmap(ui, repo, **opts' | |||||
1233 | fm.end() |
|
1233 | fm.end() | |
1234 |
|
1234 | |||
1235 |
|
1235 | |||
1236 | @command(b'perfdirfoldmap', formatteropts) |
|
1236 | @command(b'perf--dirfoldmap', formatteropts) | |
1237 | def perfdirfoldmap(ui, repo, **opts): |
|
1237 | def perfdirfoldmap(ui, repo, **opts): | |
1238 | """benchmap a `dirstate._map.dirfoldmap.get()` request |
|
1238 | """benchmap a `dirstate._map.dirfoldmap.get()` request | |
1239 |
|
1239 | |||
@@ -1255,7 +1255,7 b' def perfdirfoldmap(ui, repo, **opts):' | |||||
1255 | fm.end() |
|
1255 | fm.end() | |
1256 |
|
1256 | |||
1257 |
|
1257 | |||
1258 | @command(b'perfdirstatewrite', formatteropts) |
|
1258 | @command(b'perf--dirstatewrite', formatteropts) | |
1259 | def perfdirstatewrite(ui, repo, **opts): |
|
1259 | def perfdirstatewrite(ui, repo, **opts): | |
1260 | """benchmap the time it take to write a dirstate on disk""" |
|
1260 | """benchmap the time it take to write a dirstate on disk""" | |
1261 | opts = _byteskwargs(opts) |
|
1261 | opts = _byteskwargs(opts) | |
@@ -1297,7 +1297,7 b' def _getmergerevs(repo, opts):' | |||||
1297 |
|
1297 | |||
1298 |
|
1298 | |||
1299 | @command( |
|
1299 | @command( | |
1300 | b'perfmergecalculate', |
|
1300 | b'perf--mergecalculate', | |
1301 | [ |
|
1301 | [ | |
1302 | (b'r', b'rev', b'.', b'rev to merge against'), |
|
1302 | (b'r', b'rev', b'.', b'rev to merge against'), | |
1303 | (b'', b'from', b'', b'rev to merge from'), |
|
1303 | (b'', b'from', b'', b'rev to merge from'), | |
@@ -1330,7 +1330,7 b' def perfmergecalculate(ui, repo, **opts)' | |||||
1330 |
|
1330 | |||
1331 |
|
1331 | |||
1332 | @command( |
|
1332 | @command( | |
1333 | b'perfmergecopies', |
|
1333 | b'perf--mergecopies', | |
1334 | [ |
|
1334 | [ | |
1335 | (b'r', b'rev', b'.', b'rev to merge against'), |
|
1335 | (b'r', b'rev', b'.', b'rev to merge against'), | |
1336 | (b'', b'from', b'', b'rev to merge from'), |
|
1336 | (b'', b'from', b'', b'rev to merge from'), | |
@@ -1353,7 +1353,7 b' def perfmergecopies(ui, repo, **opts):' | |||||
1353 | fm.end() |
|
1353 | fm.end() | |
1354 |
|
1354 | |||
1355 |
|
1355 | |||
1356 | @command(b'perfpathcopies', [], b"REV REV") |
|
1356 | @command(b'perf--pathcopies', [], b"REV REV") | |
1357 | def perfpathcopies(ui, repo, rev1, rev2, **opts): |
|
1357 | def perfpathcopies(ui, repo, rev1, rev2, **opts): | |
1358 | """benchmark the copy tracing logic""" |
|
1358 | """benchmark the copy tracing logic""" | |
1359 | opts = _byteskwargs(opts) |
|
1359 | opts = _byteskwargs(opts) | |
@@ -1369,7 +1369,7 b' def perfpathcopies(ui, repo, rev1, rev2,' | |||||
1369 |
|
1369 | |||
1370 |
|
1370 | |||
1371 | @command( |
|
1371 | @command( | |
1372 | b'perfphases', |
|
1372 | b'perf--phases', | |
1373 | [ |
|
1373 | [ | |
1374 | (b'', b'full', False, b'include file reading time too'), |
|
1374 | (b'', b'full', False, b'include file reading time too'), | |
1375 | ], |
|
1375 | ], | |
@@ -1394,7 +1394,7 b' def perfphases(ui, repo, **opts):' | |||||
1394 | fm.end() |
|
1394 | fm.end() | |
1395 |
|
1395 | |||
1396 |
|
1396 | |||
1397 | @command(b'perfphasesremote', [], b"[DEST]") |
|
1397 | @command(b'perf--phasesremote', [], b"[DEST]") | |
1398 | def perfphasesremote(ui, repo, dest=None, **opts): |
|
1398 | def perfphasesremote(ui, repo, dest=None, **opts): | |
1399 | """benchmark time needed to analyse phases of the remote server""" |
|
1399 | """benchmark time needed to analyse phases of the remote server""" | |
1400 | from mercurial.node import bin |
|
1400 | from mercurial.node import bin | |
@@ -1455,7 +1455,7 b' def perfphasesremote(ui, repo, dest=None' | |||||
1455 |
|
1455 | |||
1456 |
|
1456 | |||
1457 | @command( |
|
1457 | @command( | |
1458 | b'perfmanifest', |
|
1458 | b'perf--manifest', | |
1459 | [ |
|
1459 | [ | |
1460 | (b'm', b'manifest-rev', False, b'Look up a manifest node revision'), |
|
1460 | (b'm', b'manifest-rev', False, b'Look up a manifest node revision'), | |
1461 | (b'', b'clear-disk', False, b'clear on-disk caches too'), |
|
1461 | (b'', b'clear-disk', False, b'clear on-disk caches too'), | |
@@ -1499,7 +1499,7 b' def perfmanifest(ui, repo, rev, manifest' | |||||
1499 | fm.end() |
|
1499 | fm.end() | |
1500 |
|
1500 | |||
1501 |
|
1501 | |||
1502 | @command(b'perfchangeset', formatteropts) |
|
1502 | @command(b'perf--changeset', formatteropts) | |
1503 | def perfchangeset(ui, repo, rev, **opts): |
|
1503 | def perfchangeset(ui, repo, rev, **opts): | |
1504 | opts = _byteskwargs(opts) |
|
1504 | opts = _byteskwargs(opts) | |
1505 | timer, fm = gettimer(ui, opts) |
|
1505 | timer, fm = gettimer(ui, opts) | |
@@ -1513,7 +1513,7 b' def perfchangeset(ui, repo, rev, **opts)' | |||||
1513 | fm.end() |
|
1513 | fm.end() | |
1514 |
|
1514 | |||
1515 |
|
1515 | |||
1516 | @command(b'perfignore', formatteropts) |
|
1516 | @command(b'perf--ignore', formatteropts) | |
1517 | def perfignore(ui, repo, **opts): |
|
1517 | def perfignore(ui, repo, **opts): | |
1518 | """benchmark operation related to computing ignore""" |
|
1518 | """benchmark operation related to computing ignore""" | |
1519 | opts = _byteskwargs(opts) |
|
1519 | opts = _byteskwargs(opts) | |
@@ -1532,7 +1532,7 b' def perfignore(ui, repo, **opts):' | |||||
1532 |
|
1532 | |||
1533 |
|
1533 | |||
1534 | @command( |
|
1534 | @command( | |
1535 | b'perfindex', |
|
1535 | b'perf--index', | |
1536 | [ |
|
1536 | [ | |
1537 | (b'', b'rev', [], b'revision to be looked up (default tip)'), |
|
1537 | (b'', b'rev', [], b'revision to be looked up (default tip)'), | |
1538 | (b'', b'no-lookup', None, b'do not revision lookup post creation'), |
|
1538 | (b'', b'no-lookup', None, b'do not revision lookup post creation'), | |
@@ -1596,7 +1596,7 b' def perfindex(ui, repo, **opts):' | |||||
1596 |
|
1596 | |||
1597 |
|
1597 | |||
1598 | @command( |
|
1598 | @command( | |
1599 | b'perfnodemap', |
|
1599 | b'perf--nodemap', | |
1600 | [ |
|
1600 | [ | |
1601 | (b'', b'rev', [], b'revision to be looked up (default tip)'), |
|
1601 | (b'', b'rev', [], b'revision to be looked up (default tip)'), | |
1602 | (b'', b'clear-caches', True, b'clear revlog cache between calls'), |
|
1602 | (b'', b'clear-caches', True, b'clear revlog cache between calls'), | |
@@ -1667,7 +1667,7 b' def perfnodemap(ui, repo, **opts):' | |||||
1667 | fm.end() |
|
1667 | fm.end() | |
1668 |
|
1668 | |||
1669 |
|
1669 | |||
1670 | @command(b'perfstartup', formatteropts) |
|
1670 | @command(b'perf--startup', formatteropts) | |
1671 | def perfstartup(ui, repo, **opts): |
|
1671 | def perfstartup(ui, repo, **opts): | |
1672 | opts = _byteskwargs(opts) |
|
1672 | opts = _byteskwargs(opts) | |
1673 | timer, fm = gettimer(ui, opts) |
|
1673 | timer, fm = gettimer(ui, opts) | |
@@ -1685,7 +1685,7 b' def perfstartup(ui, repo, **opts):' | |||||
1685 | fm.end() |
|
1685 | fm.end() | |
1686 |
|
1686 | |||
1687 |
|
1687 | |||
1688 | @command(b'perfparents', formatteropts) |
|
1688 | @command(b'perf--parents', formatteropts) | |
1689 | def perfparents(ui, repo, **opts): |
|
1689 | def perfparents(ui, repo, **opts): | |
1690 | """benchmark the time necessary to fetch one changeset's parents. |
|
1690 | """benchmark the time necessary to fetch one changeset's parents. | |
1691 |
|
1691 | |||
@@ -1712,7 +1712,7 b' def perfparents(ui, repo, **opts):' | |||||
1712 | fm.end() |
|
1712 | fm.end() | |
1713 |
|
1713 | |||
1714 |
|
1714 | |||
1715 | @command(b'perfctxfiles', formatteropts) |
|
1715 | @command(b'perf--ctxfiles', formatteropts) | |
1716 | def perfctxfiles(ui, repo, x, **opts): |
|
1716 | def perfctxfiles(ui, repo, x, **opts): | |
1717 | opts = _byteskwargs(opts) |
|
1717 | opts = _byteskwargs(opts) | |
1718 | x = int(x) |
|
1718 | x = int(x) | |
@@ -1725,7 +1725,7 b' def perfctxfiles(ui, repo, x, **opts):' | |||||
1725 | fm.end() |
|
1725 | fm.end() | |
1726 |
|
1726 | |||
1727 |
|
1727 | |||
1728 | @command(b'perfrawfiles', formatteropts) |
|
1728 | @command(b'perf--rawfiles', formatteropts) | |
1729 | def perfrawfiles(ui, repo, x, **opts): |
|
1729 | def perfrawfiles(ui, repo, x, **opts): | |
1730 | opts = _byteskwargs(opts) |
|
1730 | opts = _byteskwargs(opts) | |
1731 | x = int(x) |
|
1731 | x = int(x) | |
@@ -1739,7 +1739,7 b' def perfrawfiles(ui, repo, x, **opts):' | |||||
1739 | fm.end() |
|
1739 | fm.end() | |
1740 |
|
1740 | |||
1741 |
|
1741 | |||
1742 | @command(b'perflookup', formatteropts) |
|
1742 | @command(b'perf--lookup', formatteropts) | |
1743 | def perflookup(ui, repo, rev, **opts): |
|
1743 | def perflookup(ui, repo, rev, **opts): | |
1744 | opts = _byteskwargs(opts) |
|
1744 | opts = _byteskwargs(opts) | |
1745 | timer, fm = gettimer(ui, opts) |
|
1745 | timer, fm = gettimer(ui, opts) | |
@@ -1748,7 +1748,7 b' def perflookup(ui, repo, rev, **opts):' | |||||
1748 |
|
1748 | |||
1749 |
|
1749 | |||
1750 | @command( |
|
1750 | @command( | |
1751 | b'perflinelogedits', |
|
1751 | b'perf--linelogedits', | |
1752 | [ |
|
1752 | [ | |
1753 | (b'n', b'edits', 10000, b'number of edits'), |
|
1753 | (b'n', b'edits', 10000, b'number of edits'), | |
1754 | (b'', b'max-hunk-lines', 10, b'max lines in a hunk'), |
|
1754 | (b'', b'max-hunk-lines', 10, b'max lines in a hunk'), | |
@@ -1786,7 +1786,7 b' def perflinelogedits(ui, **opts):' | |||||
1786 | fm.end() |
|
1786 | fm.end() | |
1787 |
|
1787 | |||
1788 |
|
1788 | |||
1789 | @command(b'perfrevrange', formatteropts) |
|
1789 | @command(b'perf--revrange', formatteropts) | |
1790 | def perfrevrange(ui, repo, *specs, **opts): |
|
1790 | def perfrevrange(ui, repo, *specs, **opts): | |
1791 | opts = _byteskwargs(opts) |
|
1791 | opts = _byteskwargs(opts) | |
1792 | timer, fm = gettimer(ui, opts) |
|
1792 | timer, fm = gettimer(ui, opts) | |
@@ -1795,7 +1795,7 b' def perfrevrange(ui, repo, *specs, **opt' | |||||
1795 | fm.end() |
|
1795 | fm.end() | |
1796 |
|
1796 | |||
1797 |
|
1797 | |||
1798 | @command(b'perfnodelookup', formatteropts) |
|
1798 | @command(b'perf--nodelookup', formatteropts) | |
1799 | def perfnodelookup(ui, repo, rev, **opts): |
|
1799 | def perfnodelookup(ui, repo, rev, **opts): | |
1800 | opts = _byteskwargs(opts) |
|
1800 | opts = _byteskwargs(opts) | |
1801 | timer, fm = gettimer(ui, opts) |
|
1801 | timer, fm = gettimer(ui, opts) | |
@@ -1814,7 +1814,7 b' def perfnodelookup(ui, repo, rev, **opts' | |||||
1814 |
|
1814 | |||
1815 |
|
1815 | |||
1816 | @command( |
|
1816 | @command( | |
1817 | b'perflog', |
|
1817 | b'perf--log', | |
1818 | [(b'', b'rename', False, b'ask log to follow renames')] + formatteropts, |
|
1818 | [(b'', b'rename', False, b'ask log to follow renames')] + formatteropts, | |
1819 | ) |
|
1819 | ) | |
1820 | def perflog(ui, repo, rev=None, **opts): |
|
1820 | def perflog(ui, repo, rev=None, **opts): | |
@@ -1832,7 +1832,7 b' def perflog(ui, repo, rev=None, **opts):' | |||||
1832 | fm.end() |
|
1832 | fm.end() | |
1833 |
|
1833 | |||
1834 |
|
1834 | |||
1835 | @command(b'perfmoonwalk', formatteropts) |
|
1835 | @command(b'perf--moonwalk', formatteropts) | |
1836 | def perfmoonwalk(ui, repo, **opts): |
|
1836 | def perfmoonwalk(ui, repo, **opts): | |
1837 | """benchmark walking the changelog backwards |
|
1837 | """benchmark walking the changelog backwards | |
1838 |
|
1838 | |||
@@ -1851,7 +1851,7 b' def perfmoonwalk(ui, repo, **opts):' | |||||
1851 |
|
1851 | |||
1852 |
|
1852 | |||
1853 | @command( |
|
1853 | @command( | |
1854 | b'perftemplating', |
|
1854 | b'perf--templating', | |
1855 | [ |
|
1855 | [ | |
1856 | (b'r', b'rev', [], b'revisions to run the template on'), |
|
1856 | (b'r', b'rev', [], b'revisions to run the template on'), | |
1857 | ] |
|
1857 | ] | |
@@ -1941,7 +1941,7 b' def _displaystats(ui, opts, entries, dat' | |||||
1941 |
|
1941 | |||
1942 |
|
1942 | |||
1943 | @command( |
|
1943 | @command( | |
1944 | b'perfhelper-mergecopies', |
|
1944 | b'perf--helper-mergecopies', | |
1945 | formatteropts |
|
1945 | formatteropts | |
1946 | + [ |
|
1946 | + [ | |
1947 | (b'r', b'revs', [], b'restrict search to these revisions'), |
|
1947 | (b'r', b'revs', [], b'restrict search to these revisions'), | |
@@ -2124,7 +2124,7 b' def perfhelpermergecopies(ui, repo, revs' | |||||
2124 |
|
2124 | |||
2125 |
|
2125 | |||
2126 | @command( |
|
2126 | @command( | |
2127 | b'perfhelper-pathcopies', |
|
2127 | b'perf--helper-pathcopies', | |
2128 | formatteropts |
|
2128 | formatteropts | |
2129 | + [ |
|
2129 | + [ | |
2130 | (b'r', b'revs', [], b'restrict search to these revisions'), |
|
2130 | (b'r', b'revs', [], b'restrict search to these revisions'), | |
@@ -2263,7 +2263,7 b' def perfhelperpathcopies(ui, repo, revs=' | |||||
2263 | _displaystats(ui, opts, entries, alldata) |
|
2263 | _displaystats(ui, opts, entries, alldata) | |
2264 |
|
2264 | |||
2265 |
|
2265 | |||
2266 | @command(b'perfcca', formatteropts) |
|
2266 | @command(b'perf--cca', formatteropts) | |
2267 | def perfcca(ui, repo, **opts): |
|
2267 | def perfcca(ui, repo, **opts): | |
2268 | opts = _byteskwargs(opts) |
|
2268 | opts = _byteskwargs(opts) | |
2269 | timer, fm = gettimer(ui, opts) |
|
2269 | timer, fm = gettimer(ui, opts) | |
@@ -2271,7 +2271,7 b' def perfcca(ui, repo, **opts):' | |||||
2271 | fm.end() |
|
2271 | fm.end() | |
2272 |
|
2272 | |||
2273 |
|
2273 | |||
2274 | @command(b'perffncacheload', formatteropts) |
|
2274 | @command(b'perf--fncacheload', formatteropts) | |
2275 | def perffncacheload(ui, repo, **opts): |
|
2275 | def perffncacheload(ui, repo, **opts): | |
2276 | opts = _byteskwargs(opts) |
|
2276 | opts = _byteskwargs(opts) | |
2277 | timer, fm = gettimer(ui, opts) |
|
2277 | timer, fm = gettimer(ui, opts) | |
@@ -2284,7 +2284,7 b' def perffncacheload(ui, repo, **opts):' | |||||
2284 | fm.end() |
|
2284 | fm.end() | |
2285 |
|
2285 | |||
2286 |
|
2286 | |||
2287 | @command(b'perffncachewrite', formatteropts) |
|
2287 | @command(b'perf--fncachewrite', formatteropts) | |
2288 | def perffncachewrite(ui, repo, **opts): |
|
2288 | def perffncachewrite(ui, repo, **opts): | |
2289 | opts = _byteskwargs(opts) |
|
2289 | opts = _byteskwargs(opts) | |
2290 | timer, fm = gettimer(ui, opts) |
|
2290 | timer, fm = gettimer(ui, opts) | |
@@ -2304,7 +2304,7 b' def perffncachewrite(ui, repo, **opts):' | |||||
2304 | fm.end() |
|
2304 | fm.end() | |
2305 |
|
2305 | |||
2306 |
|
2306 | |||
2307 | @command(b'perffncacheencode', formatteropts) |
|
2307 | @command(b'perf--fncacheencode', formatteropts) | |
2308 | def perffncacheencode(ui, repo, **opts): |
|
2308 | def perffncacheencode(ui, repo, **opts): | |
2309 | opts = _byteskwargs(opts) |
|
2309 | opts = _byteskwargs(opts) | |
2310 | timer, fm = gettimer(ui, opts) |
|
2310 | timer, fm = gettimer(ui, opts) | |
@@ -2348,7 +2348,7 b' def _manifestrevision(repo, mnode):' | |||||
2348 |
|
2348 | |||
2349 |
|
2349 | |||
2350 | @command( |
|
2350 | @command( | |
2351 | b'perfbdiff', |
|
2351 | b'perf--bdiff', | |
2352 | revlogopts |
|
2352 | revlogopts | |
2353 | + formatteropts |
|
2353 | + formatteropts | |
2354 | + [ |
|
2354 | + [ | |
@@ -2464,7 +2464,7 b' def perfbdiff(ui, repo, file_, rev=None,' | |||||
2464 |
|
2464 | |||
2465 |
|
2465 | |||
2466 | @command( |
|
2466 | @command( | |
2467 | b'perfunidiff', |
|
2467 | b'perf--unidiff', | |
2468 | revlogopts |
|
2468 | revlogopts | |
2469 | + formatteropts |
|
2469 | + formatteropts | |
2470 | + [ |
|
2470 | + [ | |
@@ -2543,7 +2543,7 b' def perfunidiff(ui, repo, file_, rev=Non' | |||||
2543 | fm.end() |
|
2543 | fm.end() | |
2544 |
|
2544 | |||
2545 |
|
2545 | |||
2546 | @command(b'perfdiffwd', formatteropts) |
|
2546 | @command(b'perf--diffwd', formatteropts) | |
2547 | def perfdiffwd(ui, repo, **opts): |
|
2547 | def perfdiffwd(ui, repo, **opts): | |
2548 | """Profile diff of working directory changes""" |
|
2548 | """Profile diff of working directory changes""" | |
2549 | opts = _byteskwargs(opts) |
|
2549 | opts = _byteskwargs(opts) | |
@@ -2568,7 +2568,7 b' def perfdiffwd(ui, repo, **opts):' | |||||
2568 | fm.end() |
|
2568 | fm.end() | |
2569 |
|
2569 | |||
2570 |
|
2570 | |||
2571 | @command(b'perfrevlogindex', revlogopts + formatteropts, b'-c|-m|FILE') |
|
2571 | @command(b'perf--revlogindex', revlogopts + formatteropts, b'-c|-m|FILE') | |
2572 | def perfrevlogindex(ui, repo, file_=None, **opts): |
|
2572 | def perfrevlogindex(ui, repo, file_=None, **opts): | |
2573 | """Benchmark operations against a revlog index. |
|
2573 | """Benchmark operations against a revlog index. | |
2574 |
|
2574 | |||
@@ -2704,7 +2704,7 b' def perfrevlogindex(ui, repo, file_=None' | |||||
2704 |
|
2704 | |||
2705 |
|
2705 | |||
2706 | @command( |
|
2706 | @command( | |
2707 | b'perfrevlogrevisions', |
|
2707 | b'perf--revlogrevisions', | |
2708 | revlogopts |
|
2708 | revlogopts | |
2709 | + formatteropts |
|
2709 | + formatteropts | |
2710 | + [ |
|
2710 | + [ | |
@@ -2754,7 +2754,7 b' def perfrevlogrevisions(' | |||||
2754 |
|
2754 | |||
2755 |
|
2755 | |||
2756 | @command( |
|
2756 | @command( | |
2757 | b'perfrevlogwrite', |
|
2757 | b'perf--revlogwrite', | |
2758 | revlogopts |
|
2758 | revlogopts | |
2759 | + formatteropts |
|
2759 | + formatteropts | |
2760 | + [ |
|
2760 | + [ | |
@@ -3047,7 +3047,7 b' def _temprevlog(ui, orig, truncaterev):' | |||||
3047 |
|
3047 | |||
3048 |
|
3048 | |||
3049 | @command( |
|
3049 | @command( | |
3050 | b'perfrevlogchunks', |
|
3050 | b'perf--revlogchunks', | |
3051 | revlogopts |
|
3051 | revlogopts | |
3052 | + formatteropts |
|
3052 | + formatteropts | |
3053 | + [ |
|
3053 | + [ | |
@@ -3176,7 +3176,7 b' def perfrevlogchunks(ui, repo, file_=Non' | |||||
3176 |
|
3176 | |||
3177 |
|
3177 | |||
3178 | @command( |
|
3178 | @command( | |
3179 | b'perfrevlogrevision', |
|
3179 | b'perf--revlogrevision', | |
3180 | revlogopts |
|
3180 | revlogopts | |
3181 | + formatteropts |
|
3181 | + formatteropts | |
3182 | + [(b'', b'cache', False, b'use caches instead of clearing')], |
|
3182 | + [(b'', b'cache', False, b'use caches instead of clearing')], | |
@@ -3319,7 +3319,7 b' def perfrevlogrevision(ui, repo, file_, ' | |||||
3319 |
|
3319 | |||
3320 |
|
3320 | |||
3321 | @command( |
|
3321 | @command( | |
3322 | b'perfrevset', |
|
3322 | b'perf--revset', | |
3323 | [ |
|
3323 | [ | |
3324 | (b'C', b'clear', False, b'clear volatile cache between each call.'), |
|
3324 | (b'C', b'clear', False, b'clear volatile cache between each call.'), | |
3325 | (b'', b'contexts', False, b'obtain changectx for each revision'), |
|
3325 | (b'', b'contexts', False, b'obtain changectx for each revision'), | |
@@ -3352,7 +3352,7 b' def perfrevset(ui, repo, expr, clear=Fal' | |||||
3352 |
|
3352 | |||
3353 |
|
3353 | |||
3354 | @command( |
|
3354 | @command( | |
3355 | b'perfvolatilesets', |
|
3355 | b'perf--volatilesets', | |
3356 | [ |
|
3356 | [ | |
3357 | (b'', b'clear-obsstore', False, b'drop obsstore between each call.'), |
|
3357 | (b'', b'clear-obsstore', False, b'drop obsstore between each call.'), | |
3358 | ] |
|
3358 | ] | |
@@ -3401,7 +3401,7 b' def perfvolatilesets(ui, repo, *names, *' | |||||
3401 |
|
3401 | |||
3402 |
|
3402 | |||
3403 | @command( |
|
3403 | @command( | |
3404 | b'perfbranchmap', |
|
3404 | b'perf--branchmap', | |
3405 | [ |
|
3405 | [ | |
3406 | (b'f', b'full', False, b'Includes build time of subset'), |
|
3406 | (b'f', b'full', False, b'Includes build time of subset'), | |
3407 | ( |
|
3407 | ( | |
@@ -3492,7 +3492,7 b' def perfbranchmap(ui, repo, *filternames' | |||||
3492 |
|
3492 | |||
3493 |
|
3493 | |||
3494 | @command( |
|
3494 | @command( | |
3495 | b'perfbranchmapupdate', |
|
3495 | b'perf--branchmapupdate', | |
3496 | [ |
|
3496 | [ | |
3497 | (b'', b'base', [], b'subset of revision to start from'), |
|
3497 | (b'', b'base', [], b'subset of revision to start from'), | |
3498 | (b'', b'target', [], b'subset of revision to end with'), |
|
3498 | (b'', b'target', [], b'subset of revision to end with'), | |
@@ -3602,7 +3602,7 b' def perfbranchmapupdate(ui, repo, base=(' | |||||
3602 |
|
3602 | |||
3603 |
|
3603 | |||
3604 | @command( |
|
3604 | @command( | |
3605 | b'perfbranchmapload', |
|
3605 | b'perf--branchmapload', | |
3606 | [ |
|
3606 | [ | |
3607 | (b'f', b'filter', b'', b'Specify repoview filter'), |
|
3607 | (b'f', b'filter', b'', b'Specify repoview filter'), | |
3608 | (b'', b'list', False, b'List brachmap filter caches'), |
|
3608 | (b'', b'list', False, b'List brachmap filter caches'), | |
@@ -3661,7 +3661,7 b' def perfbranchmapload(ui, repo, filter=b' | |||||
3661 | fm.end() |
|
3661 | fm.end() | |
3662 |
|
3662 | |||
3663 |
|
3663 | |||
3664 | @command(b'perfloadmarkers') |
|
3664 | @command(b'perf--loadmarkers') | |
3665 | def perfloadmarkers(ui, repo): |
|
3665 | def perfloadmarkers(ui, repo): | |
3666 | """benchmark the time to parse the on-disk markers for a repo |
|
3666 | """benchmark the time to parse the on-disk markers for a repo | |
3667 |
|
3667 | |||
@@ -3673,7 +3673,7 b' def perfloadmarkers(ui, repo):' | |||||
3673 |
|
3673 | |||
3674 |
|
3674 | |||
3675 | @command( |
|
3675 | @command( | |
3676 | b'perflrucachedict', |
|
3676 | b'perf--lrucachedict', | |
3677 | formatteropts |
|
3677 | formatteropts | |
3678 | + [ |
|
3678 | + [ | |
3679 | (b'', b'costlimit', 0, b'maximum total cost of items in cache'), |
|
3679 | (b'', b'costlimit', 0, b'maximum total cost of items in cache'), | |
@@ -3829,7 +3829,7 b' def perflrucache(' | |||||
3829 |
|
3829 | |||
3830 |
|
3830 | |||
3831 | @command( |
|
3831 | @command( | |
3832 | b'perfwrite', |
|
3832 | b'perf--write', | |
3833 | formatteropts |
|
3833 | formatteropts | |
3834 | + [ |
|
3834 | + [ | |
3835 | (b'', b'write-method', b'write', b'ui write method'), |
|
3835 | (b'', b'write-method', b'write', b'ui write method'), | |
@@ -3892,7 +3892,7 b' def uisetup(ui):' | |||||
3892 |
|
3892 | |||
3893 |
|
3893 | |||
3894 | @command( |
|
3894 | @command( | |
3895 | b'perfprogress', |
|
3895 | b'perf--progress', | |
3896 | formatteropts |
|
3896 | formatteropts | |
3897 | + [ |
|
3897 | + [ | |
3898 | (b'', b'topic', b'topic', b'topic for progress messages'), |
|
3898 | (b'', b'topic', b'topic', b'topic for progress messages'), |
@@ -78,109 +78,121 b' perfstatus' | |||||
78 |
|
78 | |||
79 | list of commands: |
|
79 | list of commands: | |
80 |
|
80 | |||
81 | perfaddremove |
|
81 | perf--addremove | |
|
82 | (no help text available) | |||
|
83 | perf--ancestors | |||
82 | (no help text available) |
|
84 | (no help text available) | |
83 | perfancestors |
|
85 | perf--ancestorset | |
84 | (no help text available) |
|
86 | (no help text available) | |
85 | perfancestorset |
|
87 | perf--annotate | |
86 | (no help text available) |
|
88 | (no help text available) | |
87 | perfannotate (no help text available) |
|
89 | perf--bdiff benchmark a bdiff between revisions | |
88 | perfbdiff benchmark a bdiff between revisions |
|
90 | perf--bookmarks | |
89 | perfbookmarks |
|
|||
90 | benchmark parsing bookmarks from disk to memory |
|
91 | benchmark parsing bookmarks from disk to memory | |
91 | perfbranchmap |
|
92 | perf--branchmap | |
92 | benchmark the update of a branchmap |
|
93 | benchmark the update of a branchmap | |
93 | perfbranchmapload |
|
94 | perf--branchmapload | |
94 | benchmark reading the branchmap |
|
95 | benchmark reading the branchmap | |
95 | perfbranchmapupdate |
|
96 | perf--branchmapupdate | |
96 | benchmark branchmap update from for <base> revs to <target> |
|
97 | benchmark branchmap update from for <base> revs to <target> | |
97 | revs |
|
98 | revs | |
98 | perfbundleread |
|
99 | perf--bundleread | |
99 | Benchmark reading of bundle files. |
|
100 | Benchmark reading of bundle files. | |
100 |
perfcca |
|
101 | perf--cca (no help text available) | |
101 | perfchangegroupchangelog |
|
102 | perf--changegroupchangelog | |
102 | Benchmark producing a changelog group for a changegroup. |
|
103 | Benchmark producing a changelog group for a changegroup. | |
103 | perfchangeset |
|
104 | perf--changeset | |
|
105 | (no help text available) | |||
|
106 | perf--ctxfiles | |||
104 | (no help text available) |
|
107 | (no help text available) | |
105 | perfctxfiles (no help text available) |
|
108 | perf--diffwd Profile diff of working directory changes | |
106 | perfdiffwd Profile diff of working directory changes |
|
109 | perf--dirfoldmap | |
107 | perfdirfoldmap |
|
|||
108 | benchmap a 'dirstate._map.dirfoldmap.get()' request |
|
110 | benchmap a 'dirstate._map.dirfoldmap.get()' request | |
109 |
perfdirs |
|
111 | perf--dirs (no help text available) | |
110 | perfdirstate benchmap the time of various distate operations |
|
112 | perf--dirstate | |
111 | perfdirstatedirs |
|
113 | benchmap the time of various distate operations | |
|
114 | perf--dirstatedirs | |||
112 | benchmap a 'dirstate.hasdir' call from an empty 'dirs' cache |
|
115 | benchmap a 'dirstate.hasdir' call from an empty 'dirs' cache | |
113 | perfdirstatefoldmap |
|
116 | perf--dirstatefoldmap | |
114 | benchmap a 'dirstate._map.filefoldmap.get()' request |
|
117 | benchmap a 'dirstate._map.filefoldmap.get()' request | |
115 | perfdirstatewrite |
|
118 | perf--dirstatewrite | |
116 | benchmap the time it take to write a dirstate on disk |
|
119 | benchmap the time it take to write a dirstate on disk | |
117 | perfdiscovery |
|
120 | perf--discovery | |
118 | benchmark discovery between local repo and the peer at given |
|
121 | benchmark discovery between local repo and the peer at given | |
119 | path |
|
122 | path | |
120 | perffncacheencode |
|
123 | perf--fncacheencode | |
121 | (no help text available) |
|
124 | (no help text available) | |
122 | perffncacheload |
|
125 | perf--fncacheload | |
123 | (no help text available) |
|
126 | (no help text available) | |
124 | perffncachewrite |
|
127 | perf--fncachewrite | |
125 | (no help text available) |
|
128 | (no help text available) | |
126 |
perfheads |
|
129 | perf--heads benchmark the computation of a changelog heads | |
127 | perfhelper-mergecopies |
|
130 | perf--helper-mergecopies | |
128 | find statistics about potential parameters for |
|
131 | find statistics about potential parameters for | |
129 | 'perfmergecopies' |
|
132 | 'perfmergecopies' | |
130 | perfhelper-pathcopies |
|
133 | perf--helper-pathcopies | |
131 | find statistic about potential parameters for the |
|
134 | find statistic about potential parameters for the | |
132 | 'perftracecopies' |
|
135 | 'perftracecopies' | |
133 |
perfignore |
|
136 | perf--ignore benchmark operation related to computing ignore | |
134 |
perfindex |
|
137 | perf--index benchmark index creation time followed by a lookup | |
135 | perflinelogedits |
|
138 | perf--linelogedits | |
136 | (no help text available) |
|
139 | (no help text available) | |
137 | perfloadmarkers |
|
140 | perf--loadmarkers | |
138 | benchmark the time to parse the on-disk markers for a repo |
|
141 | benchmark the time to parse the on-disk markers for a repo | |
139 |
perflog |
|
142 | perf--log (no help text available) | |
140 |
perflookup |
|
143 | perf--lookup (no help text available) | |
141 | perflrucachedict |
|
144 | perf--lrucachedict | |
142 | (no help text available) |
|
145 | (no help text available) | |
143 | perfmanifest benchmark the time to read a manifest from disk and return a |
|
146 | perf--manifest | |
|
147 | benchmark the time to read a manifest from disk and return a | |||
144 | usable |
|
148 | usable | |
145 | perfmergecalculate |
|
149 | perf--mergecalculate | |
146 | (no help text available) |
|
150 | (no help text available) | |
147 | perfmergecopies |
|
151 | perf--mergecopies | |
148 | measure runtime of 'copies.mergecopies' |
|
152 | measure runtime of 'copies.mergecopies' | |
149 | perfmoonwalk benchmark walking the changelog backwards |
|
153 | perf--moonwalk | |
150 | perfnodelookup |
|
154 | benchmark walking the changelog backwards | |
|
155 | perf--nodelookup | |||
151 | (no help text available) |
|
156 | (no help text available) | |
152 | perfnodemap benchmark the time necessary to look up revision from a cold |
|
157 | perf--nodemap | |
|
158 | benchmark the time necessary to look up revision from a cold | |||
153 | nodemap |
|
159 | nodemap | |
154 | perfparents benchmark the time necessary to fetch one changeset's parents. |
|
160 | perf--parents | |
155 | perfpathcopies |
|
161 | benchmark the time necessary to fetch one changeset's parents. | |
|
162 | perf--pathcopies | |||
156 | benchmark the copy tracing logic |
|
163 | benchmark the copy tracing logic | |
157 |
perfphases |
|
164 | perf--phases benchmark phasesets computation | |
158 | perfphasesremote |
|
165 | perf--phasesremote | |
159 | benchmark time needed to analyse phases of the remote server |
|
166 | benchmark time needed to analyse phases of the remote server | |
160 | perfprogress printing of progress bars |
|
167 | perf--progress | |
161 | perfrawfiles (no help text available) |
|
168 | printing of progress bars | |
162 | perfrevlogchunks |
|
169 | perf--rawfiles | |
|
170 | (no help text available) | |||
|
171 | perf--revlogchunks | |||
163 | Benchmark operations on revlog chunks. |
|
172 | Benchmark operations on revlog chunks. | |
164 | perfrevlogindex |
|
173 | perf--revlogindex | |
165 | Benchmark operations against a revlog index. |
|
174 | Benchmark operations against a revlog index. | |
166 | perfrevlogrevision |
|
175 | perf--revlogrevision | |
167 | Benchmark obtaining a revlog revision. |
|
176 | Benchmark obtaining a revlog revision. | |
168 | perfrevlogrevisions |
|
177 | perf--revlogrevisions | |
169 | Benchmark reading a series of revisions from a revlog. |
|
178 | Benchmark reading a series of revisions from a revlog. | |
170 | perfrevlogwrite |
|
179 | perf--revlogwrite | |
171 | Benchmark writing a series of revisions to a revlog. |
|
180 | Benchmark writing a series of revisions to a revlog. | |
172 | perfrevrange (no help text available) |
|
181 | perf--revrange | |
173 | perfrevset benchmark the execution time of a revset |
|
182 | (no help text available) | |
174 | perfstartup (no help text available) |
|
183 | perf--revset benchmark the execution time of a revset | |
175 | perfstatus benchmark the performance of a single status call |
|
184 | perf--startup | |
176 |
|
|
185 | (no help text available) | |
177 | perftemplating |
|
186 | perf--status benchmark the performance of a single status call | |
|
187 | perf--tags (no help text available) | |||
|
188 | perf--templating | |||
178 | test the rendering time of a given template |
|
189 | test the rendering time of a given template | |
179 | perfunidiff benchmark a unified diff between revisions |
|
190 | perf--unidiff | |
180 | perfvolatilesets |
|
191 | benchmark a unified diff between revisions | |
|
192 | perf--volatilesets | |||
181 | benchmark the computation of various volatile set |
|
193 | benchmark the computation of various volatile set | |
182 |
perfwalk |
|
194 | perf--walk (no help text available) | |
183 |
perfwrite |
|
195 | perf--write microbenchmark ui.write (and others) | |
184 |
|
196 | |||
185 | (use 'hg help -v perf' to show built-in aliases and global options) |
|
197 | (use 'hg help -v perf' to show built-in aliases and global options) | |
186 | $ hg perfaddremove |
|
198 | $ hg perfaddremove |
General Comments 0
You need to be logged in to leave comments.
Login now