Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/debugcommands.py @ 49391:236702592ff0 stable
debug-discovery: gather the right number of roundtrips for tree discovery
We where not counting the right amount of request before.
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Tue, 26 Jul 2022 10:34:20 +0200 |
parents | 362c0026a977 |
children | ac4fda5d3ccd |
comparison
equal
deleted
inserted
replaced
49390:362c0026a977 | 49391:236702592ff0 |
---|---|
1376 fm.startitem() | 1376 fm.startitem() |
1377 fm.data(**pycompat.strkwargs(data)) | 1377 fm.data(**pycompat.strkwargs(data)) |
1378 # display discovery summary | 1378 # display discovery summary |
1379 fm.plain(b"elapsed time: %(elapsed)f seconds\n" % data) | 1379 fm.plain(b"elapsed time: %(elapsed)f seconds\n" % data) |
1380 fm.plain(b"round-trips: %(total-roundtrips)9d\n" % data) | 1380 fm.plain(b"round-trips: %(total-roundtrips)9d\n" % data) |
1381 if b'total-round-trips-heads' in data: | |
1382 fm.plain( | |
1383 b" round-trips-heads: %(total-round-trips-heads)9d\n" % data | |
1384 ) | |
1385 if b'total-round-trips-branches' in data: | |
1386 fm.plain( | |
1387 b" round-trips-branches: %(total-round-trips-branches)9d\n" | |
1388 % data | |
1389 ) | |
1390 if b'total-round-trips-between' in data: | |
1391 fm.plain( | |
1392 b" round-trips-between: %(total-round-trips-between)9d\n" % data | |
1393 ) | |
1381 fm.plain(b"queries: %(total-queries)9d\n" % data) | 1394 fm.plain(b"queries: %(total-queries)9d\n" % data) |
1382 if b'total-queries-branches' in data: | 1395 if b'total-queries-branches' in data: |
1383 fm.plain(b" queries-branches: %(total-queries-branches)9d\n" % data) | 1396 fm.plain(b" queries-branches: %(total-queries-branches)9d\n" % data) |
1384 if b'total-queries-between' in data: | 1397 if b'total-queries-between' in data: |
1385 fm.plain(b" queries-between: %(total-queries-between)9d\n" % data) | 1398 fm.plain(b" queries-between: %(total-queries-between)9d\n" % data) |