Show More
@@ -744,7 +744,7 b' def clearchangelog(repo):' | |||||
744 | # perf commands |
|
744 | # perf commands | |
745 |
|
745 | |||
746 |
|
746 | |||
747 |
@command(b'perf |
|
747 | @command(b'perf::walk|perfwalk', 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'perf |
|
762 | @command(b'perf::annotate|perfannotate', 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'perf |
|
772 | b'perf::status|perfstatus', | |
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'perf |
|
809 | @command(b'perf::addremove|perfaddremove', 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'perf |
|
840 | @command(b'perf::heads|perfheads', 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'perf |
|
858 | b'perf::tags|perftags', | |
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'perf |
|
883 | @command(b'perf::ancestors|perfancestors', 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'perf |
|
897 | @command(b'perf::ancestorset|perfancestorset', 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'perf |
|
913 | @command(b'perf::discovery|perfdiscovery', 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'perf |
|
931 | b'perf::bookmarks|perfbookmarks', | |
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'perf |
|
956 | @command(b'perf::bundleread|perfbundleread', 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'perf |
|
1083 | b'perf::changegroupchangelog|perfchangegroupchangelog', | |
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'perf |
|
1119 | @command(b'perf::dirs|perfdirs', 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'perf |
|
1135 | b'perf::dirstate|perfdirstate', | |
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'perf |
|
1198 | @command(b'perf::dirstatedirs|perfdirstatedirs', 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'perf |
|
1215 | @command(b'perf::dirstatefoldmap|perfdirstatefoldmap', 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'perf |
|
1236 | @command(b'perf::dirfoldmap|perfdirfoldmap', 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'perf |
|
1258 | @command(b'perf::dirstatewrite|perfdirstatewrite', 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'perf |
|
1300 | b'perf::mergecalculate|perfmergecalculate', | |
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'perf |
|
1333 | b'perf::mergecopies|perfmergecopies', | |
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'perf |
|
1356 | @command(b'perf::pathcopies|perfpathcopies', [], 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'perf |
|
1372 | b'perf::phases|perfphases', | |
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'perf |
|
1397 | @command(b'perf::phasesremote|perfphasesremote', [], 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'perf |
|
1458 | b'perf::manifest|perfmanifest', | |
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'perf |
|
1502 | @command(b'perf::changeset|perfchangeset', 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'perf |
|
1516 | @command(b'perf::ignore|perfignore', 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'perf |
|
1535 | b'perf::index|perfindex', | |
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'perf |
|
1599 | b'perf::nodemap|perfnodemap', | |
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'perf |
|
1670 | @command(b'perf::startup|perfstartup', 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'perf |
|
1688 | @command(b'perf::parents|perfparents', 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'perf |
|
1715 | @command(b'perf::ctxfiles|perfctxfiles', 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'perf |
|
1728 | @command(b'perf::rawfiles|perfrawfiles', 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'perf |
|
1742 | @command(b'perf::lookup|perflookup', 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'perf |
|
1751 | b'perf::linelogedits|perflinelogedits', | |
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'perf |
|
1789 | @command(b'perf::revrange|perfrevrange', 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'perf |
|
1798 | @command(b'perf::nodelookup|perfnodelookup', 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'perf |
|
1817 | b'perf::log|perflog', | |
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'perf |
|
1835 | @command(b'perf::moonwalk|perfmoonwalk', 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'perf |
|
1854 | b'perf::templating|perftemplating', | |
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'perf |
|
1944 | b'perf::helper-mergecopies|perfhelper-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'perf |
|
2127 | b'perf::helper-pathcopies|perfhelper-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'perf |
|
2266 | @command(b'perf::cca|perfcca', 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'perf |
|
2274 | @command(b'perf::fncacheload|perffncacheload', 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'perf |
|
2287 | @command(b'perf::fncachewrite|perffncachewrite', 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'perf |
|
2307 | @command(b'perf::fncacheencode|perffncacheencode', 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'perf |
|
2351 | b'perf::bdiff|perfbdiff', | |
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'perf |
|
2467 | b'perf::unidiff|perfunidiff', | |
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'perf |
|
2546 | @command(b'perf::diffwd|perfdiffwd', 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,11 b' def perfdiffwd(ui, repo, **opts):' | |||||
2568 | fm.end() |
|
2568 | fm.end() | |
2569 |
|
2569 | |||
2570 |
|
2570 | |||
2571 | @command(b'perf--revlogindex', revlogopts + formatteropts, b'-c|-m|FILE') |
|
2571 | @command( | |
|
2572 | b'perf::revlogindex|perfrevlogindex', | |||
|
2573 | revlogopts + formatteropts, | |||
|
2574 | b'-c|-m|FILE', | |||
|
2575 | ) | |||
2572 | def perfrevlogindex(ui, repo, file_=None, **opts): |
|
2576 | def perfrevlogindex(ui, repo, file_=None, **opts): | |
2573 | """Benchmark operations against a revlog index. |
|
2577 | """Benchmark operations against a revlog index. | |
2574 |
|
2578 | |||
@@ -2704,7 +2708,7 b' def perfrevlogindex(ui, repo, file_=None' | |||||
2704 |
|
2708 | |||
2705 |
|
2709 | |||
2706 | @command( |
|
2710 | @command( | |
2707 |
b'perf |
|
2711 | b'perf::revlogrevisions|perfrevlogrevisions', | |
2708 | revlogopts |
|
2712 | revlogopts | |
2709 | + formatteropts |
|
2713 | + formatteropts | |
2710 | + [ |
|
2714 | + [ | |
@@ -2754,7 +2758,7 b' def perfrevlogrevisions(' | |||||
2754 |
|
2758 | |||
2755 |
|
2759 | |||
2756 | @command( |
|
2760 | @command( | |
2757 |
b'perf |
|
2761 | b'perf::revlogwrite|perfrevlogwrite', | |
2758 | revlogopts |
|
2762 | revlogopts | |
2759 | + formatteropts |
|
2763 | + formatteropts | |
2760 | + [ |
|
2764 | + [ | |
@@ -3047,7 +3051,7 b' def _temprevlog(ui, orig, truncaterev):' | |||||
3047 |
|
3051 | |||
3048 |
|
3052 | |||
3049 | @command( |
|
3053 | @command( | |
3050 |
b'perf |
|
3054 | b'perf::revlogchunks|perfrevlogchunks', | |
3051 | revlogopts |
|
3055 | revlogopts | |
3052 | + formatteropts |
|
3056 | + formatteropts | |
3053 | + [ |
|
3057 | + [ | |
@@ -3176,7 +3180,7 b' def perfrevlogchunks(ui, repo, file_=Non' | |||||
3176 |
|
3180 | |||
3177 |
|
3181 | |||
3178 | @command( |
|
3182 | @command( | |
3179 |
b'perf |
|
3183 | b'perf::revlogrevision|perfrevlogrevision', | |
3180 | revlogopts |
|
3184 | revlogopts | |
3181 | + formatteropts |
|
3185 | + formatteropts | |
3182 | + [(b'', b'cache', False, b'use caches instead of clearing')], |
|
3186 | + [(b'', b'cache', False, b'use caches instead of clearing')], | |
@@ -3319,7 +3323,7 b' def perfrevlogrevision(ui, repo, file_, ' | |||||
3319 |
|
3323 | |||
3320 |
|
3324 | |||
3321 | @command( |
|
3325 | @command( | |
3322 |
b'perf |
|
3326 | b'perf::revset|perfrevset', | |
3323 | [ |
|
3327 | [ | |
3324 | (b'C', b'clear', False, b'clear volatile cache between each call.'), |
|
3328 | (b'C', b'clear', False, b'clear volatile cache between each call.'), | |
3325 | (b'', b'contexts', False, b'obtain changectx for each revision'), |
|
3329 | (b'', b'contexts', False, b'obtain changectx for each revision'), | |
@@ -3352,7 +3356,7 b' def perfrevset(ui, repo, expr, clear=Fal' | |||||
3352 |
|
3356 | |||
3353 |
|
3357 | |||
3354 | @command( |
|
3358 | @command( | |
3355 |
b'perf |
|
3359 | b'perf::volatilesets|perfvolatilesets', | |
3356 | [ |
|
3360 | [ | |
3357 | (b'', b'clear-obsstore', False, b'drop obsstore between each call.'), |
|
3361 | (b'', b'clear-obsstore', False, b'drop obsstore between each call.'), | |
3358 | ] |
|
3362 | ] | |
@@ -3401,7 +3405,7 b' def perfvolatilesets(ui, repo, *names, *' | |||||
3401 |
|
3405 | |||
3402 |
|
3406 | |||
3403 | @command( |
|
3407 | @command( | |
3404 |
b'perf |
|
3408 | b'perf::branchmap|perfbranchmap', | |
3405 | [ |
|
3409 | [ | |
3406 | (b'f', b'full', False, b'Includes build time of subset'), |
|
3410 | (b'f', b'full', False, b'Includes build time of subset'), | |
3407 | ( |
|
3411 | ( | |
@@ -3492,7 +3496,7 b' def perfbranchmap(ui, repo, *filternames' | |||||
3492 |
|
3496 | |||
3493 |
|
3497 | |||
3494 | @command( |
|
3498 | @command( | |
3495 |
b'perf |
|
3499 | b'perf::branchmapupdate|perfbranchmapupdate', | |
3496 | [ |
|
3500 | [ | |
3497 | (b'', b'base', [], b'subset of revision to start from'), |
|
3501 | (b'', b'base', [], b'subset of revision to start from'), | |
3498 | (b'', b'target', [], b'subset of revision to end with'), |
|
3502 | (b'', b'target', [], b'subset of revision to end with'), | |
@@ -3602,7 +3606,7 b' def perfbranchmapupdate(ui, repo, base=(' | |||||
3602 |
|
3606 | |||
3603 |
|
3607 | |||
3604 | @command( |
|
3608 | @command( | |
3605 |
b'perf |
|
3609 | b'perf::branchmapload|perfbranchmapload', | |
3606 | [ |
|
3610 | [ | |
3607 | (b'f', b'filter', b'', b'Specify repoview filter'), |
|
3611 | (b'f', b'filter', b'', b'Specify repoview filter'), | |
3608 | (b'', b'list', False, b'List brachmap filter caches'), |
|
3612 | (b'', b'list', False, b'List brachmap filter caches'), | |
@@ -3661,7 +3665,7 b' def perfbranchmapload(ui, repo, filter=b' | |||||
3661 | fm.end() |
|
3665 | fm.end() | |
3662 |
|
3666 | |||
3663 |
|
3667 | |||
3664 |
@command(b'perf |
|
3668 | @command(b'perf::loadmarkers|perfloadmarkers') | |
3665 | def perfloadmarkers(ui, repo): |
|
3669 | def perfloadmarkers(ui, repo): | |
3666 | """benchmark the time to parse the on-disk markers for a repo |
|
3670 | """benchmark the time to parse the on-disk markers for a repo | |
3667 |
|
3671 | |||
@@ -3673,7 +3677,7 b' def perfloadmarkers(ui, repo):' | |||||
3673 |
|
3677 | |||
3674 |
|
3678 | |||
3675 | @command( |
|
3679 | @command( | |
3676 |
b'perf |
|
3680 | b'perf::lrucachedict|perflrucachedict', | |
3677 | formatteropts |
|
3681 | formatteropts | |
3678 | + [ |
|
3682 | + [ | |
3679 | (b'', b'costlimit', 0, b'maximum total cost of items in cache'), |
|
3683 | (b'', b'costlimit', 0, b'maximum total cost of items in cache'), | |
@@ -3829,7 +3833,7 b' def perflrucache(' | |||||
3829 |
|
3833 | |||
3830 |
|
3834 | |||
3831 | @command( |
|
3835 | @command( | |
3832 |
b'perf |
|
3836 | b'perf::write|perfwrite', | |
3833 | formatteropts |
|
3837 | formatteropts | |
3834 | + [ |
|
3838 | + [ | |
3835 | (b'', b'write-method', b'write', b'ui write method'), |
|
3839 | (b'', b'write-method', b'write', b'ui write method'), | |
@@ -3892,7 +3896,7 b' def uisetup(ui):' | |||||
3892 |
|
3896 | |||
3893 |
|
3897 | |||
3894 | @command( |
|
3898 | @command( | |
3895 |
b'perf |
|
3899 | b'perf::progress|perfprogress', | |
3896 | formatteropts |
|
3900 | formatteropts | |
3897 | + [ |
|
3901 | + [ | |
3898 | (b'', b'topic', b'topic', b'topic for progress messages'), |
|
3902 | (b'', b'topic', b'topic', b'topic for progress messages'), |
@@ -78,126 +78,126 b' perfstatus' | |||||
78 |
|
78 | |||
79 | list of commands: |
|
79 | list of commands: | |
80 |
|
80 | |||
81 |
perf |
|
81 | perf::addremove | |
82 | (no help text available) |
|
82 | (no help text available) | |
83 |
perf |
|
83 | perf::ancestors | |
84 | (no help text available) |
|
84 | (no help text available) | |
85 |
perf |
|
85 | perf::ancestorset | |
86 | (no help text available) |
|
86 | (no help text available) | |
87 |
perf |
|
87 | perf::annotate | |
88 | (no help text available) |
|
88 | (no help text available) | |
89 |
perf |
|
89 | perf::bdiff benchmark a bdiff between revisions | |
90 |
perf |
|
90 | perf::bookmarks | |
91 | benchmark parsing bookmarks from disk to memory |
|
91 | benchmark parsing bookmarks from disk to memory | |
92 |
perf |
|
92 | perf::branchmap | |
93 | benchmark the update of a branchmap |
|
93 | benchmark the update of a branchmap | |
94 |
perf |
|
94 | perf::branchmapload | |
95 | benchmark reading the branchmap |
|
95 | benchmark reading the branchmap | |
96 |
perf |
|
96 | perf::branchmapupdate | |
97 | benchmark branchmap update from for <base> revs to <target> |
|
97 | benchmark branchmap update from for <base> revs to <target> | |
98 | revs |
|
98 | revs | |
99 |
perf |
|
99 | perf::bundleread | |
100 | Benchmark reading of bundle files. |
|
100 | Benchmark reading of bundle files. | |
101 |
perf |
|
101 | perf::cca (no help text available) | |
102 |
perf |
|
102 | perf::changegroupchangelog | |
103 | Benchmark producing a changelog group for a changegroup. |
|
103 | Benchmark producing a changelog group for a changegroup. | |
104 |
perf |
|
104 | perf::changeset | |
105 | (no help text available) |
|
105 | (no help text available) | |
106 |
perf |
|
106 | perf::ctxfiles | |
107 | (no help text available) |
|
107 | (no help text available) | |
108 |
perf |
|
108 | perf::diffwd Profile diff of working directory changes | |
109 |
perf |
|
109 | perf::dirfoldmap | |
110 | benchmap a 'dirstate._map.dirfoldmap.get()' request |
|
110 | benchmap a 'dirstate._map.dirfoldmap.get()' request | |
111 |
perf |
|
111 | perf::dirs (no help text available) | |
112 |
perf |
|
112 | perf::dirstate | |
113 | benchmap the time of various distate operations |
|
113 | benchmap the time of various distate operations | |
114 |
perf |
|
114 | perf::dirstatedirs | |
115 | benchmap a 'dirstate.hasdir' call from an empty 'dirs' cache |
|
115 | benchmap a 'dirstate.hasdir' call from an empty 'dirs' cache | |
116 |
perf |
|
116 | perf::dirstatefoldmap | |
117 | benchmap a 'dirstate._map.filefoldmap.get()' request |
|
117 | benchmap a 'dirstate._map.filefoldmap.get()' request | |
118 |
perf |
|
118 | perf::dirstatewrite | |
119 | benchmap the time it take to write a dirstate on disk |
|
119 | benchmap the time it take to write a dirstate on disk | |
120 |
perf |
|
120 | perf::discovery | |
121 | benchmark discovery between local repo and the peer at given |
|
121 | benchmark discovery between local repo and the peer at given | |
122 | path |
|
122 | path | |
123 |
perf |
|
123 | perf::fncacheencode | |
124 | (no help text available) |
|
124 | (no help text available) | |
125 |
perf |
|
125 | perf::fncacheload | |
126 | (no help text available) |
|
126 | (no help text available) | |
127 |
perf |
|
127 | perf::fncachewrite | |
128 | (no help text available) |
|
128 | (no help text available) | |
129 |
perf |
|
129 | perf::heads benchmark the computation of a changelog heads | |
130 |
perf |
|
130 | perf::helper-mergecopies | |
131 | find statistics about potential parameters for |
|
131 | find statistics about potential parameters for | |
132 | 'perfmergecopies' |
|
132 | 'perfmergecopies' | |
133 |
perf |
|
133 | perf::helper-pathcopies | |
134 | find statistic about potential parameters for the |
|
134 | find statistic about potential parameters for the | |
135 | 'perftracecopies' |
|
135 | 'perftracecopies' | |
136 |
perf |
|
136 | perf::ignore benchmark operation related to computing ignore | |
137 |
perf |
|
137 | perf::index benchmark index creation time followed by a lookup | |
138 |
perf |
|
138 | perf::linelogedits | |
139 | (no help text available) |
|
139 | (no help text available) | |
140 |
perf |
|
140 | perf::loadmarkers | |
141 | 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 | |
142 |
perf |
|
142 | perf::log (no help text available) | |
143 |
perf |
|
143 | perf::lookup (no help text available) | |
144 |
perf |
|
144 | perf::lrucachedict | |
145 | (no help text available) |
|
145 | (no help text available) | |
146 |
perf |
|
146 | perf::manifest | |
147 | benchmark the time to read a manifest from disk and return a |
|
147 | benchmark the time to read a manifest from disk and return a | |
148 | usable |
|
148 | usable | |
149 |
perf |
|
149 | perf::mergecalculate | |
150 | (no help text available) |
|
150 | (no help text available) | |
151 |
perf |
|
151 | perf::mergecopies | |
152 | measure runtime of 'copies.mergecopies' |
|
152 | measure runtime of 'copies.mergecopies' | |
153 |
perf |
|
153 | perf::moonwalk | |
154 | benchmark walking the changelog backwards |
|
154 | benchmark walking the changelog backwards | |
155 |
perf |
|
155 | perf::nodelookup | |
156 | (no help text available) |
|
156 | (no help text available) | |
157 |
perf |
|
157 | perf::nodemap | |
158 | benchmark the time necessary to look up revision from a cold |
|
158 | benchmark the time necessary to look up revision from a cold | |
159 | nodemap |
|
159 | nodemap | |
160 |
perf |
|
160 | perf::parents | |
161 | benchmark the time necessary to fetch one changeset's parents. |
|
161 | benchmark the time necessary to fetch one changeset's parents. | |
162 |
perf |
|
162 | perf::pathcopies | |
163 | benchmark the copy tracing logic |
|
163 | benchmark the copy tracing logic | |
164 |
perf |
|
164 | perf::phases benchmark phasesets computation | |
165 |
perf |
|
165 | perf::phasesremote | |
166 | benchmark time needed to analyse phases of the remote server |
|
166 | benchmark time needed to analyse phases of the remote server | |
167 |
perf |
|
167 | perf::progress | |
168 | printing of progress bars |
|
168 | printing of progress bars | |
169 |
perf |
|
169 | perf::rawfiles | |
170 | (no help text available) |
|
170 | (no help text available) | |
171 |
perf |
|
171 | perf::revlogchunks | |
172 | Benchmark operations on revlog chunks. |
|
172 | Benchmark operations on revlog chunks. | |
173 |
perf |
|
173 | perf::revlogindex | |
174 | Benchmark operations against a revlog index. |
|
174 | Benchmark operations against a revlog index. | |
175 |
perf |
|
175 | perf::revlogrevision | |
176 | Benchmark obtaining a revlog revision. |
|
176 | Benchmark obtaining a revlog revision. | |
177 |
perf |
|
177 | perf::revlogrevisions | |
178 | Benchmark reading a series of revisions from a revlog. |
|
178 | Benchmark reading a series of revisions from a revlog. | |
179 |
perf |
|
179 | perf::revlogwrite | |
180 | Benchmark writing a series of revisions to a revlog. |
|
180 | Benchmark writing a series of revisions to a revlog. | |
181 |
perf |
|
181 | perf::revrange | |
182 | (no help text available) |
|
182 | (no help text available) | |
183 |
perf |
|
183 | perf::revset benchmark the execution time of a revset | |
184 |
perf |
|
184 | perf::startup | |
185 | (no help text available) |
|
185 | (no help text available) | |
186 |
perf |
|
186 | perf::status benchmark the performance of a single status call | |
187 |
perf |
|
187 | perf::tags (no help text available) | |
188 |
perf |
|
188 | perf::templating | |
189 | test the rendering time of a given template |
|
189 | test the rendering time of a given template | |
190 |
perf |
|
190 | perf::unidiff | |
191 | benchmark a unified diff between revisions |
|
191 | benchmark a unified diff between revisions | |
192 |
perf |
|
192 | perf::volatilesets | |
193 | benchmark the computation of various volatile set |
|
193 | benchmark the computation of various volatile set | |
194 |
perf |
|
194 | perf::walk (no help text available) | |
195 |
perf |
|
195 | perf::write microbenchmark ui.write (and others) | |
196 |
|
196 | |||
197 | (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) | |
198 |
|
198 | |||
199 | $ hg help perfaddremove |
|
199 | $ hg help perfaddremove | |
200 |
hg perf |
|
200 | hg perf::addremove | |
201 |
|
201 | |||
202 | aliases: perfaddremove |
|
202 | aliases: perfaddremove | |
203 |
|
203 |
General Comments 0
You need to be logged in to leave comments.
Login now