diff options
author | Matúš Kukan <matus.kukan@gmail.com> | 2013-05-23 10:09:12 +0200 |
---|---|---|
committer | Matúš Kukan <matus.kukan@collabora.com> | 2013-11-28 21:09:17 +0100 |
commit | 1ec659f24bf6d2564a5547cd5b5cc12df15fece2 (patch) | |
tree | 2640e659ed1d761b8cfee3f58e866e2ed2e34531 /loperf | |
parent | 505a6165c0ecc1e5ff977dc4d237cb72c5ec624f (diff) |
loperf: if possible, gzip the callgrind output file
Diffstat (limited to 'loperf')
-rwxr-xr-x | loperf/loperf.sh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/loperf/loperf.sh b/loperf/loperf.sh index 667fa6b..b23b64b 100755 --- a/loperf/loperf.sh +++ b/loperf/loperf.sh @@ -32,6 +32,7 @@ source utls.sh REQUIRED_VALGRIND_VERSION="valgrind-3.7.0" hash valgrind > /dev/null 2>&1 || echo "valgrind >= $REQUIRED_VALGRIND_VERSION is required for this test." +hash gzip > /dev/null 2>&1 && GZIP="TRUE" if test $(compareversion "$(valgrind --version)" "$REQUIRED_VALGRIND_VERSION") -eq -1; then echo "valgrind >= $REQUIRED_VALGRIND_VERSION is required for this test." @@ -93,6 +94,7 @@ cur_log=$(launch) offload_str=$(grep '^summary:' "$cur_log" | sed s/"summary: "//) offload=($offload_str) +if test -n "$GZIP"; then gzip "$cur_log" > /dev/null 2>&1; fi #Collect data to csv file CSV_FN="$CSV_LOG_DIR"/"offload.csv" @@ -136,6 +138,7 @@ find docs -type f | grep -Ev "\/\." | while read f; do onload_str=$(grep '^summary:' "$cur_log" | sed s/"summary: "//) onload=($onload_str) + if test -n "$GZIP"; then gzip "$cur_log" > /dev/null 2>&1; fi # Populate onload to PF_LOG echo "Load: $f" | tee -a "$PF_LOG" echo "$onload_str" | tee -a "$PF_LOG" |