diff 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
line wrap: on
line diff
--- a/mercurial/debugcommands.py	Sun Mar 13 16:10:53 2022 +0100
+++ b/mercurial/debugcommands.py	Mon Mar 14 05:59:20 2022 +0100
@@ -1221,6 +1221,7 @@
     # display discovery summary
     fm.plain(b"elapsed time:  %(elapsed)f seconds\n" % data)
     fm.plain(b"round-trips:           %(total-roundtrips)9d\n" % data)
+    fm.plain(b"queries:               %(total-queries)9d\n" % data)
     fm.plain(b"heads summary:\n")
     fm.plain(b"  total common heads:  %(nb-common-heads)9d\n" % data)
     fm.plain(b"    also local heads:  %(nb-common-heads-local)9d\n" % data)