File tree Expand file tree Collapse file tree 3 files changed +21
-0
lines changed
Expand file tree Collapse file tree 3 files changed +21
-0
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,13 @@ LIB="../mapcodelib/mapcoder.o"
55echo " Run gprof profiler..." | tee $REPORT
66date | tee -a $REPORT
77
8+ TEST=` which gprof`
9+ if [ " $TEST " = " " ]
10+ then
11+ echo " No gprof found on this machine - skipping script..."
12+ exit 1
13+ fi
14+
815echo " " | tee -a $REPORT
916echo " Run with: -O0" | tee -a $REPORT
1017cd ../mapcodelib
Original file line number Diff line number Diff line change @@ -7,6 +7,12 @@ export ASAN_OPTIONS=debug=true:strict_string_checks=1:detect_stack_use_after_ret
77echo " Run address sanitizer..." | tee $REPORT
88date | tee -a $REPORT
99
10+ TEST=` which clang`
11+ if [ " $TEST " = " " ]
12+ then
13+ echo " No clang found on this machine - skipping script..."
14+ exit 1
15+ fi
1016# No optimize
1117echo " " | tee -a $REPORT
1218echo " Run with: -O0" | tee -a $REPORT
Original file line number Diff line number Diff line change @@ -3,6 +3,14 @@ OPTS="-Wall -Werror -Wno-pointer-to-int-cast"
33LIB=" ../mapcodelib/mapcoder.o"
44
55echo " Run valgrind" | tee $REPORT
6+ date | tee -a $REPORT
7+
8+ TEST=` which valgrind`
9+ if [ " $TEST " = " " ]
10+ then
11+ echo " No valgrind found on this machine - skipping script..."
12+ exit 1
13+ fi
614
715echo " " | tee -a $REPORT
816echo " Run with: -O0" | tee -a report_valgrind.txt
You can’t perform that action at this time.
0 commit comments