summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGabor Kelemen <kelemeng@ubuntu.com>2023-04-16 01:57:46 +0200
committerMichael Stahl <michael.stahl@allotropia.de>2023-04-25 10:42:37 +0200
commitb355c9b79e03307eda080c5ea6010632854fa801 (patch)
tree29beb88c42cec43343e8fac3be87f82f23405488
parentResolves: tdf#154958 add an empty spin button to use for the unused case (diff)
downloadcore-b355c9b79e03307eda080c5ea6010632854fa801.tar.gz
core-b355c9b79e03307eda080c5ea6010632854fa801.zip
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>
-rwxr-xr-xbin/includebloat.awk6
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
}
}