diff options
author | Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org> | 2024-04-12 18:19:53 +0300 |
---|---|---|
committer | Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org> | 2024-04-12 17:20:35 +0200 |
commit | e4c3bf95610bf2995326c0a7a3a2f2a2e9b75c1e (patch) | |
tree | 074be16a6527a8da5224178321860a8fa523a854 | |
parent | 9a568801c8d78b4d3faced5afc89fbb2bfd1a21a (diff) |
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.lauhakangas@libreoffice.org>
Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
-rwxr-xr-x | scripts/regression-hotspots.py | 4 |
1 files changed, 3 insertions, 1 deletions
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__': |