Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/debugcommands.py @ 49082:f054a557aab8
discovery: also audit the number of queries done
In addition to the number of roundtrip, we now also track the number of queries
we perform, this is useful to assert the tradeoff between number of roundtrip and
the number of queries.
Differential Revision: https://phab.mercurial-scm.org/D12398
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Mon, 14 Mar 2022 05:59:20 +0100 |
parents | db960032d522 |
children | ea98850a136e |
comparison
equal
deleted
inserted
replaced
49081:a2bd6b23881d | 49082:f054a557aab8 |
---|---|
1219 fm.startitem() | 1219 fm.startitem() |
1220 fm.data(**pycompat.strkwargs(data)) | 1220 fm.data(**pycompat.strkwargs(data)) |
1221 # display discovery summary | 1221 # display discovery summary |
1222 fm.plain(b"elapsed time: %(elapsed)f seconds\n" % data) | 1222 fm.plain(b"elapsed time: %(elapsed)f seconds\n" % data) |
1223 fm.plain(b"round-trips: %(total-roundtrips)9d\n" % data) | 1223 fm.plain(b"round-trips: %(total-roundtrips)9d\n" % data) |
1224 fm.plain(b"queries: %(total-queries)9d\n" % data) | |
1224 fm.plain(b"heads summary:\n") | 1225 fm.plain(b"heads summary:\n") |
1225 fm.plain(b" total common heads: %(nb-common-heads)9d\n" % data) | 1226 fm.plain(b" total common heads: %(nb-common-heads)9d\n" % data) |
1226 fm.plain(b" also local heads: %(nb-common-heads-local)9d\n" % data) | 1227 fm.plain(b" also local heads: %(nb-common-heads-local)9d\n" % data) |
1227 fm.plain(b" also remote heads: %(nb-common-heads-remote)9d\n" % data) | 1228 fm.plain(b" also remote heads: %(nb-common-heads-remote)9d\n" % data) |
1228 fm.plain(b" both: %(nb-common-heads-both)9d\n" % data) | 1229 fm.plain(b" both: %(nb-common-heads-both)9d\n" % data) |