scripts/regression-hotspots.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
New commits: commit e4c3bf95610bf2995326c0a7a3a2f2a2e9b75c1e Author: Ilmari Lauhakangas <ilmari.lauhakan...@libreoffice.org> AuthorDate: Fri Apr 12 18:19:53 2024 +0300 Commit: Ilmari Lauhakangas <ilmari.lauhakan...@libreoffice.org> CommitDate: Fri Apr 12 17:20:35 2024 +0200 regression-hotspots: don't print counts below 10 Change-Id: Ic6b52077bd6a343461aba35640498de1422a18ed Reviewed-on: https://gerrit.libreoffice.org/c/dev-tools/+/166036 Tested-by: Ilmari Lauhakangas <ilmari.lauhakan...@libreoffice.org> Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakan...@libreoffice.org> diff --git a/scripts/regression-hotspots.py b/scripts/regression-hotspots.py index 150cb9bd..5cca55f8 100755 --- a/scripts/regression-hotspots.py +++ b/scripts/regression-hotspots.py @@ -52,7 +52,9 @@ def print_counts(counts): # wiki page uses a widget to clamp the output while offering a button to expand print('<pre class="clamped">') for count in printorder: - print('%5d %s' % (count[0], count[1])) + # we are mainly interested in the hottest spots, so skip counts below 10 + if count[0] >= 10: + print('%5d %s' % (count[0], count[1])) print('</pre>') if __name__ == '__main__':