summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatúš Kukan <matus.kukan@collabora.com>2014-03-17 16:24:03 +0100
committerMatúš Kukan <matus.kukan@collabora.com>2014-03-17 20:45:43 +0100
commit1ea68a205d904cb8c7a10cbe9dfb18f904dd7fb6 (patch)
tree9320b7a50a44c433c1fce5e1231a8f5d0afa29a4
parentd62a9feb43b83c50d19b20d2c006e377b2ccf684 (diff)
loperf: Remove user directory before first start; and then start again.
-rwxr-xr-xloperf/loperf.sh16
1 files changed, 11 insertions, 5 deletions
diff --git a/loperf/loperf.sh b/loperf/loperf.sh
index c0a31b2..880d5a8 100755
--- a/loperf/loperf.sh
+++ b/loperf/loperf.sh
@@ -62,7 +62,7 @@ test -f "$CSV_HISTORY" || echo -e "time,git-commit,offload$(ls $DOCUMENTSDIR/* |
function launch {
- if test "$1" = ""; then
+ if test "$1" = "offload"; then
export OOO_EXIT_POST_STARTUP=1
valgrind --tool=callgrind --callgrind-out-file="$CG_LOG"-offload.log --simulate-cache=yes --dump-instr=yes --collect-bus=yes --branch-sim=yes "$OFFICEBIN" --splash-pipe=0 --headless > /dev/null 2>&1
unset OOO_EXIT_POST_STARTUP
@@ -102,8 +102,11 @@ function write_data {
test -n "$GZIP" && gzip "$cur_log" > /dev/null 2>&1
#Collect data to csv file
- test -z "$1" && CSV_FN="$CSV_LOG_DIR"/"offload.csv"
- test -n "$1" && CSV_FN="$CSV_LOG_DIR"/"onload-${1#$DOCUMENTSDIR\/}".csv
+ if test "$1" = "offload"; then
+ CSV_FN="${CSV_LOG_DIR}/offload-${2}.csv"
+ else
+ CSV_FN="${CSV_LOG_DIR}/onload-${1#$DOCUMENTSDIR\/}.csv"
+ fi
echo -n "$TESTDATE"$'\t'"$LOVERSION" >> "$CSV_FN"
for i in $(seq 0 13); do
@@ -117,8 +120,11 @@ function write_data {
}
# Do a clean launch
-echo "Start offload pvt..."
-$(write_data "")
+rm -rf ${1/program\/soffice.bin/user}
+echo "First start offload pvt..."
+$(write_data "offload" "first")
+echo "Second start offload pvt..."
+$(write_data "offload" "second")
# Loaded launch one by one
echo "Start onload pvt..."