/[escript]/trunk/run-escript.in
ViewVC logotype

Diff of /trunk/run-escript.in

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 5148 by caltinay, Mon Sep 15 01:25:23 2014 UTC revision 5239 by caltinay, Thu Oct 30 05:36:00 2014 UTC
# Line 150  Usage: run-escript [options] script.py [ Line 150  Usage: run-escript [options] script.py [
150      -o      redirect output from MPI to files      -o      redirect output from MPI to files
151      -v      print diagnostics      -v      print diagnostics
152      -x      run in new xterm instance      -x      run in new xterm instance
153      -m tool     run with valgrind {tool=m[emcheck]/c[allgrind]}      -m tool     run with valgrind {tool=m[emcheck]/c[allgrind]/[cac]h[egrind]}
154      script.py   Your python script      script.py   Your python script
155      arguments...    The optional command-line arguments to your script      arguments...    The optional command-line arguments to your script
156  "  "
# Line 396  then Line 396  then
396              LOGFILE=${LOGDIR}/callgrind.%p.xml              LOGFILE=${LOGDIR}/callgrind.%p.xml
397              VALGRIND="valgrind --tool=callgrind --callgrind-out-file=$LOGFILE"              VALGRIND="valgrind --tool=callgrind --callgrind-out-file=$LOGFILE"
398              EXEC_CMD="$EXEC_CMD $VALGRIND"              EXEC_CMD="$EXEC_CMD $VALGRIND"
399            elif [ $VG_TOOL = "h" ];
400            then
401                # run cachegrind
402                LOGFILE=${LOGDIR}/cachegrind.%p.xml
403                VALGRIND="valgrind --tool=cachegrind --cachegrind-out-file=$LOGFILE"
404                EXEC_CMD="$EXEC_CMD $VALGRIND"
405          else          else
406              # run memcheck by default              # run memcheck by default
407              LAST_N=$(ls -1 $LOGDIR|grep "^memcheck"|tail -1|cut -d. -f2)              LAST_N=$(ls -1 $LOGDIR|grep "^memcheck"|tail -1|cut -d. -f2)

Legend:
Removed from v.5148  
changed lines
  Added in v.5239

  ViewVC Help
Powered by ViewVC 1.1.26