Add -p option to the valgrind script for profiling with callgrind.

svn path=/trunk/; revision=49543
This commit is contained in:
Evan Huus 2013-05-23 02:30:40 +00:00
parent ff20a73022
commit 396a1881b7
1 changed files with 2 additions and 1 deletions

View File

@ -36,7 +36,7 @@ VALID=0
PCAP=""
TOOL=""
while getopts ":2b:C:lmnrtTwcevW" OPTCHAR ; do
while getopts ":2b:C:lmnprtTwcevW" OPTCHAR ; do
case $OPTCHAR in
2) COMMAND_ARGS="-2 $COMMAND_ARGS" ;;
b) BIN_DIR=$OPTARG ;;
@ -45,6 +45,7 @@ while getopts ":2b:C:lmnrtTwcevW" OPTCHAR ; do
m) TOOL="--tool=massif" ;;
n) COMMAND_ARGS="-v"
VALID=1 ;;
p) TOOL="--tool=callgrind" ;;
r) REACHABLE="--show-reachable=yes" ;;
t) TRACK_ORIGINS="--track-origins=yes" ;;
T) COMMAND_ARGS="-Vx $COMMAND_ARGS" ;; # "build the Tree"