Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add script for performing compilation size regression investigations. #15303

Merged
merged 8 commits into from
Nov 26, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Correct scoping.
  • Loading branch information
tzarc committed Nov 26, 2021
commit f74fa46d4dbbf95cc06fedc3eb4f71066a60fcf8
10 changes: 5 additions & 5 deletions util/size_regression.sh
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,12 @@ function build_executor() {
last_size=$file_size
last_line=$line
done
}

if [ -n "$last_line" ] ; then
size_delta=0
printf "Size: %8d, delta: %+6d -- %s\n" "$last_size" "$size_delta" "$last_line"
fi
if [ -n "$last_line" ] ; then
size_delta=0
printf "Size: %8d, delta: %+6d -- %s\n" "$last_size" "$size_delta" "$last_line"
fi
}

# The actual execution of all the builds needs to be the last command in the entire script
# - During builds, this script file will disappear, so we need the entire script to be
Expand Down