From: Han-Wen Nienhuys Date: Fri, 5 Jan 2007 02:13:48 +0000 (+0100) Subject: update for build-profile.sh X-Git-Tag: release/2.11.9-1~17 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=433b97931cbe1b8a695d6a7f33e58f44749a7a7a;p=lilypond.git update for build-profile.sh --- diff --git a/buildscripts/build-profile.sh b/buildscripts/build-profile.sh index fc872de0b9..f095c66e87 100755 --- a/buildscripts/build-profile.sh +++ b/buildscripts/build-profile.sh @@ -33,9 +33,29 @@ echo 'foo = \new Staff \new Voice \repeat unfold 50 \relative { c4 d8[ d16( e]~ >>' > long-score.ly +rm gmon.sum -../bin/lilypond -ddump-profile -I $depth/input/ -I $depth/input/mutopia/J.S.Bach/ \ +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 -I $depth/input/ -I $depth/input/mutopia/J.S.Bach/ \ -I $depth/input/mutopia/W.A.Mozart/ \ - wtk-fugue2 mozart-hrn-3 long-score + $files + + if test -f gmon.sum ; then + gprof -s $exe gmon.out gmon.sum + else + mv gmon.out gmon.sum + fi +done + + +for a in *.profile; do + echo $a + cat $a +done -gprof ../bin/lilypond +gprof $exe gmon.sum > profile