[Libreoffice-commits] loperf/loperf.sh

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Tue Feb 12 10:15:38 PST 2013


 loperf/loperf.sh |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

New commits:
commit 39feb28fd6dc8fdabe0cbc66af81ddee1f9c6525
Author: Matúš Kukan <matus.kukan at gmail.com>
Date:   Tue Feb 12 18:51:48 2013 +0100

    loperf: Allow to use optional valgrind paramaters
    
    This can be used e.g. for special cache settings (--I1, --D1, --LL)

diff --git a/loperf/loperf.sh b/loperf/loperf.sh
index b681ecc..201999c 100755
--- a/loperf/loperf.sh
+++ b/loperf/loperf.sh
@@ -42,6 +42,7 @@ fi
 export OOO_EXIT_POST_STARTUP=1
 export OOO_DISABLE_RECOVERY=1
 OFFICEBIN="$1"
+VALGRIND_PARAMS="$2"
 
 TESTDATE=$(date --rfc-3339=second)
 
@@ -60,11 +61,11 @@ mkdir -p "$CSV_LOG_DIR" > /dev/null 2>&1
 function launch {
 
     if test "$1" = ""; then
-        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
+        valgrind --tool=callgrind $VALGRIND_PARAMS --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
         echo -n "$CG_LOG"-offload.log
     else
         fn=${1#docs\/}
-        valgrind --tool=callgrind --callgrind-out-file="$CG_LOG"-onload-"$fn".log --simulate-cache=yes --dump-instr=yes --collect-bus=yes --branch-sim=yes "$OFFICEBIN" "$1" --splash-pipe=0 --headless > /dev/null 2>&1
+        valgrind --tool=callgrind $VALGRIND_PARAMS --callgrind-out-file="$CG_LOG"-onload-"$fn".log --simulate-cache=yes --dump-instr=yes --collect-bus=yes --branch-sim=yes "$OFFICEBIN" "$1" --splash-pipe=0 --headless > /dev/null 2>&1
         echo -n "$CG_LOG"-onload-"$fn".log
     fi
 }


More information about the Libreoffice-commits mailing list