# HG changeset patch # User Boris Feld # Date 2018-11-05 23:57:34 # Node ID c63081cd39026ab0c1ec6f729b95918f1cf611b0 # Parent 4dd7edeb3da9f3cf058ac7f06016d26dbb2be2ed perf: only display the total time for perfrevlogwrite if quiet This provide a simple way to get an overview of the total performance. diff --git a/contrib/perf.py b/contrib/perf.py --- a/contrib/perf.py +++ b/contrib/perf.py @@ -1632,10 +1632,11 @@ def perfrevlogwrite(ui, repo, file_=None ("99%", resultcount * 99 // 100), ("max", -1), ] - for name, idx in relevants: - data = results[idx] - title = '%s of %d, rev %d' % (name, resultcount, data[0]) - formatone(fm, data[1], title=title, displayall=displayall) + if not ui.quiet: + for name, idx in relevants: + data = results[idx] + title = '%s of %d, rev %d' % (name, resultcount, data[0]) + formatone(fm, data[1], title=title, displayall=displayall) # XXX summing that many float will not be very precise, we ignore this fact # for now