From: Han-Wen Nienhuys Date: Sat, 6 Jan 2007 20:46:25 +0000 (+0100) Subject: don't average over multiple gprof runs. X-Git-Tag: release/2.11.10-1~39 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=9fc50cc409a78ba4dc673f7d373a412c93710474;p=lilypond.git don't average over multiple gprof runs. --- diff --git a/buildscripts/build-profile.sh b/buildscripts/build-profile.sh index 887263d9e2..ee85ec7773 100755 --- a/buildscripts/build-profile.sh +++ b/buildscripts/build-profile.sh @@ -43,17 +43,11 @@ exe=$depth/out-prof/bin/lilypond ## todo: figure out representative sample. files="wtk1-fugue2 wtk1-fugue2 wtk1-fugue2 wtk1-fugue2 mozart-hrn-3 mozart-hrn-3 long-score" -for a in seq 1 3; do - $exe -ddump-profile --formats=ps -I $depth/input/ -I $depth/input/mutopia/J.S.Bach/ \ - -I $depth/input/mutopia/W.A.Mozart/ \ - $files - - if test -f gmon.sum ; then - gprof -s $exe gmon.out gmon.sum - else - mv gmon.out gmon.sum - fi -done + + +$exe -ddump-profile --formats=ps -I $depth/input/ -I $depth/input/mutopia/J.S.Bach/ \ + -I $depth/input/mutopia/W.A.Mozart/ \ + $files for a in *.profile; do @@ -61,4 +55,26 @@ for a in *.profile; do cat $a done +echo 'running gprof' +gprof $exe > profile + +exit 0 + + +## gprof -s takes forever. +for a in seq 1 3; do + for f in $files ; do + $exe -ddump-profile --formats=ps -I $depth/input/ -I $depth/input/mutopia/J.S.Bach/ \ + -I $depth/input/mutopia/W.A.Mozart/ \ + $f + + echo 'running gprof' + if test -f gmon.sum ; then + gprof -s $exe gmon.out gmon.sum + else + mv gmon.out gmon.sum + fi + done +done + gprof $exe gmon.sum > profile