]> git.donarmstrong.com Git - lilypond.git/commitdiff
update for build-profile.sh
authorHan-Wen Nienhuys <hanwen@xs4all.nl>
Fri, 5 Jan 2007 02:13:48 +0000 (03:13 +0100)
committerHan-Wen Nienhuys <hanwen@xs4all.nl>
Fri, 5 Jan 2007 02:13:48 +0000 (03:13 +0100)
buildscripts/build-profile.sh

index fc872de0b903453e6aaafdfeda3e3982af8e964b..f095c66e87353c3d0f8407bacbbaa4a8f90c417c 100755 (executable)
@@ -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