3 if test "$1" == "--fresh"; then
7 if test ! -f config-prof.make; then
11 if test "$fresh" = "yes";
13 ./configure --enable-config=prof --enable-optimising \
14 && perl -i~ -pe 's/-pipe /-pg -pipe /g' config-prof.make \
15 && perl -i~ -pe 's/ -ldl / -pg -ldl /g' config-prof.make
22 resultdir=out/profile-results
29 echo 'foo = \new Staff \new Voice \repeat unfold 50 \relative { c4 d8[ d16( e]~ e16[ e e) f] g8 }
38 exe=$depth/out-prof/bin/lilypond
40 ## todo: figure out representative sample.
41 files="wtk1-fugue2 wtk1-fugue2 wtk1-fugue2 wtk1-fugue2 mozart-hrn-3 mozart-hrn-3 long-score"
44 $exe -ddump-profile -I $depth/input/ -I $depth/input/mutopia/J.S.Bach/ \
45 -I $depth/input/mutopia/W.A.Mozart/ \
48 if test -f gmon.sum ; then
49 gprof -s $exe gmon.out gmon.sum
56 for a in *.profile; do
61 gprof $exe gmon.sum > profile