X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=buildscripts%2Fbuild-profile.sh;h=072cf64520c2fab1640a4e10502f833651bd370e;hb=1ee79e6b8d4386a5885960a3eafb87db933d7f63;hp=887263d9e2d8ac000940e7dd8182cc60079bd37b;hpb=721ad807e30b69eca0e82fd1b1cf6de2b2fe0a39;p=lilypond.git diff --git a/buildscripts/build-profile.sh b/buildscripts/build-profile.sh index 887263d9e2..072cf64520 100755 --- a/buildscripts/build-profile.sh +++ b/buildscripts/build-profile.sh @@ -29,12 +29,19 @@ mkdir $resultdir cd $resultdir -echo 'foo = \new Staff \new Voice \repeat unfold 50 \relative { c4 d8[ d16( e]~ e16[ e e) f] g8 } -\new ChoirStaff << - \foo \foo \foo \foo - \foo \foo \foo \foo - ->>' > long-score.ly +cat > long-score.ly << EOF +\version "2.10.0" +foo = \new Staff \new Voice \repeat unfold 50 \relative { c4 d8[ d16( e]~ e16[ e e) f] g8 } +\score { + \new ChoirStaff << + \foo \foo \foo \foo + \foo \foo \foo \foo + + >> + \midi {} + \layout {} +} +EOF rm gmon.sum @@ -43,17 +50,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 +62,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