diff options
author | Kristina Bessonova <kbessonova@accesssoftek.com> | 2019-12-11 20:52:49 +0300 |
---|---|---|
committer | Kristina Bessonova <kbessonova@accesssoftek.com> | 2019-12-13 16:08:25 +0300 |
commit | 1cc4b603ba79c8bf8f60790cff31f872e7d00142 (patch) | |
tree | d36a33d24a0e8b888361f5e81c7cbd3dbf765ac8 /llvm/utils | |
parent | 25305a9311d45bc602014b7ee7584e80675aaf59 (diff) | |
download | bcm5719-llvm-1cc4b603ba79c8bf8f60790cff31f872e7d00142.tar.gz bcm5719-llvm-1cc4b603ba79c8bf8f60790cff31f872e7d00142.zip |
[llvm-dwarfdump][Statistics] Change the coverage buckets representation. NFC
Summary:
This changes the representation of 'coverage buckets' in llvm-dwarfdump and
llvm-locstats to one that makes more clear what the buckets contain.
See some related details in D71070.
Reviewers: djtodoro, aprantl, cmtice, jhenderson
Subscribers: llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D71366
Diffstat (limited to 'llvm/utils')
-rwxr-xr-x | llvm/utils/llvm-locstats/llvm-locstats.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/utils/llvm-locstats/llvm-locstats.py b/llvm/utils/llvm-locstats/llvm-locstats.py index 408513c3191..2bbc3f1986d 100755 --- a/llvm/utils/llvm-locstats/llvm-locstats.py +++ b/llvm/utils/llvm-locstats/llvm-locstats.py @@ -15,9 +15,9 @@ from subprocess import Popen, PIPE def coverage_buckets(): yield '0%' - yield '1-9%' + yield '[1%,10%)' for start in range(10, 91, 10): - yield '{0}-{1}%'.format(start, start + 9) + yield '[{0}%,{1}%)'.format(start, start + 10) yield '100%' def locstats_output( @@ -44,10 +44,10 @@ def locstats_output( print (' =================================================') print (' Debug Location Statistics ') print (' =================================================') - print (' cov% samples percentage(~) ') + print (' cov% samples percentage(~) ') print (' -------------------------------------------------') for cov_bucket in coverage_buckets(): - print (' {0:6} {1:8d} {2:3d}%'. \ + print (' {0:10} {1:8d} {2:3d}%'. \ format(cov_bucket, variables_coverage_map[cov_bucket], \ variables_coverage_per_map[cov_bucket])) print (' =================================================') |