summaryrefslogtreecommitdiffstats
path: root/llvm/utils
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/utils')
-rwxr-xr-xllvm/utils/llvm-locstats/llvm-locstats.py8
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 (' =================================================')
OpenPOWER on IntegriCloud