diff options
author | Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org> | 2021-12-17 15:44:30 +0530 |
---|---|---|
committer | Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org> | 2021-12-17 15:45:25 +0530 |
commit | 6382cc45b2d8f7583e512d5684b4efcea4b89237 (patch) | |
tree | 3a94c705b88d385956864f7c898eb5de8c28a935 | |
parent | aabb29bd555bcd1c7c629445084b6bcd1162642b (diff) |
Use -fdump-statistics for all gnu benchmarking configs.
The rationale behind the patch is that regardless of the particular
metric (speed, size, vect etc.), a benchmarking run will gather
all the metrics. And during comparison, we look up the relevant
metric data, we wish to use for comparison.
Change-Id: I1839c041829e830151c5eb6504e5018884f4a71f
-rwxr-xr-x | tcwg_bmk-build.sh | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tcwg_bmk-build.sh b/tcwg_bmk-build.sh index b8e77446..fc6e4e74 100755 --- a/tcwg_bmk-build.sh +++ b/tcwg_bmk-build.sh @@ -180,8 +180,8 @@ benchmark () mkdir "$(pwd)"/bin local bmk_flags bmk_ldflags reboot run_profile - bmk_flags="$(echo $bmk_cflags | sed -e "s/_/ -/g" -e "s/LTO/flto/g" \ - -e "s/VECT/fdump-statistics/g")" + bmk_flags="$(echo $bmk_cflags | sed -e "s/_/ -/g" -e "s/LTO/flto/g")" + case "$bmk_cflags" in "-Os"*|"-Oz"*) reboot=false @@ -219,6 +219,8 @@ benchmark () bin="$(pwd)/abe/builds/destdir/$gnu_host/bin" cc="$bin/$gnu_target-" toolchain="gnu" + # Append -fdump-statistics to obtain metrics. + bmk_flags="$bmk_flags -fdump-statistics" ;; esac case "${rr[toolchain]}:${benchmarks[*]}" in |