summaryrefslogtreecommitdiff
path: root/hack/make-and-check-size
diff options
context:
space:
mode:
authorEd Santiago <santiago@redhat.com>2022-03-29 07:54:26 -0600
committerEd Santiago <santiago@redhat.com>2022-03-29 08:56:19 -0600
commitc602084a5c72be71ed8a8dc9cf9558bc08e4c911 (patch)
tree0215bbed823bba9ba24814f0093ffb1614e08415 /hack/make-and-check-size
parent0eff4b70d0429c0dd1d95bc0a15f679cef351cb5 (diff)
downloadpodman-c602084a5c72be71ed8a8dc9cf9558bc08e4c911.tar.gz
podman-c602084a5c72be71ed8a8dc9cf9558bc08e4c911.tar.bz2
podman-c602084a5c72be71ed8a8dc9cf9558bc08e4c911.zip
size-check: display binary size and growth
This won't actually be seen except by someone who takes the time to clickety-click into Cirrus - but that's better than not showing it at all. Signed-off-by: Ed Santiago <santiago@redhat.com>
Diffstat (limited to 'hack/make-and-check-size')
-rwxr-xr-xhack/make-and-check-size2
1 files changed, 2 insertions, 0 deletions
diff --git a/hack/make-and-check-size b/hack/make-and-check-size
index 71b382b44..f2345b815 100755
--- a/hack/make-and-check-size
+++ b/hack/make-and-check-size
@@ -109,6 +109,7 @@ for bin in bin/*;do
size_orig=$(< $saved_size_file)
delta_size=$(( size - size_orig ))
+ printf "%-20s size=%9d delta=%6d\n" $bin $size $delta_size
if [[ $delta_size -gt $MAX_BIN_GROWTH ]]; then
separator=$(printf "%.0s*" {1..75}) # row of stars, for highlight
echo "$separator"
@@ -129,5 +130,6 @@ for bin in bin/*;do
else
# First time through: preserve original file size
echo $size >$saved_size_file
+ printf "%-20s size=%9d\n" $bin $size
fi
done