bin/includebloat.awk | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)
New commits: commit b355c9b79e03307eda080c5ea6010632854fa801 Author: Gabor Kelemen <[email protected]> AuthorDate: Sun Apr 16 01:57:46 2023 +0200 Commit: Michael Stahl <[email protected]> CommitDate: Tue Apr 25 10:42:37 2023 +0200 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 <[email protected]> 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 } }
