Skip to content

Commit

Permalink
Merge pull request containers#13693 from edsantiago/show_size
Browse files Browse the repository at this point in the history
size-check: display binary size and growth
  • Loading branch information
openshift-merge-robot authored Mar 29, 2022
2 parents 3990f9c + c602084 commit c319eda
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions hack/make-and-check-size
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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

0 comments on commit c319eda

Please sign in to comment.