File: run_valgrind.sh

package info (click to toggle)
bornagain 23.0-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 103,936 kB
  • sloc: cpp: 423,131; python: 40,997; javascript: 11,167; awk: 630; sh: 318; ruby: 173; xml: 130; makefile: 51; ansic: 24
file content (37 lines) | stat: -rwxr-xr-x 1,307 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# run GISASFW functional tests with 'gperftools'
# see README for more explanation

mkdir -p ./output


application=../../App/App
#arguments="isgisaxs9 profile"
#arguments="isgisaxs10 batch"
#arguments="isgisaxs9 batch"
#arguments="isgisaxs2 batch profile"
#arguments="--isgisaxs09 --batch"
arguments="--testbugs --batch"
focuson=GISASExperiment

# ------------------------------------------- #
# profiling cpu usage
# ------------------------------------------- #
profile_cpu=no
if [ $profile_cpu = "yes" ]
then
#  valgrind --tool=callgrind -v --dump-every-bb=10000000 --dump-instr=yes --trace-jump=yes ./App commandline
  valgrind  --tool=callgrind --dsymutil=yes --callgrind-out-file=./output/callgrind.output  --log-file=./output/tmplog.output --dump-instr=yes --trace-jump=yes $application $arguments
# --zero-before=GISASExperiment
fi


# ------------------------------------------- #
# profiling HEAP usage
# ------------------------------------------- #
profile_memory=yes
if [ $profile_memory = "yes" ]
then
  valgrind --log-file=./output/valgrind.output  --dsymutil=yes --num-callers=6 --track-origins=yes --leak-check=yes $application $arguments
fi

#valgrind --log-file=valgrind.output --tool=memcheck --leak-check=yes --show-reachable=yes --num-callers=20 --track-fds=yes ./App/App mesocrystal