chiark / gitweb /
Makefile, chain.c: Use Xyla found using `pkg-config'.
[wordchain] / run-massif
1 #! /bin/sh -e
2
3 run_massif () {
4   out=$1; shift
5   valgrind --tool=massif --massif-out-file=$out \
6            --peak-inaccuracy=0 --pages-as-heap=no \
7            "$@"
8 }
9
10 run_wordchain () {
11   out=$1 impl=$2 dict=$3
12
13   case $impl in
14     lisp-*)
15       run_massif $out runlisp -L${impl#lisp-} ./chain.lisp $dict
16       ;;
17     *)
18       run_massif $out ./chain.$impl <$dict
19       ;;
20   esac
21 }
22
23 make -s list | while read i; do
24   case $i in golang | lisp-*) continue ;; esac
25   run_wordchain massif.$i.baseline $i /dev/null
26   for d in DICT.*; do
27     d=${d#DICT.}
28     run_wordchain massif.$i.$d $i DICT.$d
29   done
30 done