diff options
author | Gabor Kelemen <kelemeng@ubuntu.com> | 2023-04-16 01:57:46 +0200 |
---|---|---|
committer | Michael Stahl <michael.stahl@allotropia.de> | 2023-04-25 10:42:37 +0200 |
commit | b355c9b79e03307eda080c5ea6010632854fa801 (patch) | |
tree | 29beb88c42cec43343e8fac3be87f82f23405488 /bin | |
parent | bff4282e1c0c7c1f32b93cf5175a721c8226d5de (diff) |
Make bin/includebloat.awk script output prettier
So instead of:
sum total bytes included (excluding system headers): 21793372177
1197253280 132910 9008 /home/gabor/src/core/include/rtl/ustring.hxx
825845085 90207 9155 /home/gabor/src/core/include/rtl/ustring.h
We can see something nicer:
Sum total bytes included (excluding system headers): 21.795.559.123
Total bytes Size Occurrences Filename
1.197.253.280 132.910 9.008 /home/gabor/src/core/include/rtl/ustring.hxx
825.845.085 90.207 9.155 /home/gabor/src/core/include/rtl/ustring.h
Change-Id: Iabcaadae964221ed532e7e7e97b10211e37d4857
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/150613
Tested-by: Jenkins
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/includebloat.awk | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/bin/includebloat.awk b/bin/includebloat.awk index 3792ef950721..2ec182335bc0 100755 --- a/bin/includebloat.awk +++ b/bin/includebloat.awk @@ -42,9 +42,11 @@ END { close(cmd) } PROCINFO["sorted_in"] = "@val_num_desc" - print "sum total bytes included (excluding system headers): " totalsize + printf "Sum total bytes included (excluding system headers): %'d\n", totalsize + print "Total bytes\tSize\t Occurrences\tFilename" + OFS="\t" for (inc in totals) { - print totals[inc], sizes[inc], includes[inc], inc + printf "%'13d\t%'7d\t%'8d\t%s\n", totals[inc], sizes[inc], includes[inc], inc } } |