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>
This commit is contained in:
Gabor Kelemen 2023-04-16 01:57:46 +02:00 committed by Michael Stahl
parent bff4282e1c
commit b355c9b79e

View file

@ -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
}
}