]> git.donarmstrong.com Git - lilypond.git/commitdiff
don't average over multiple gprof runs.
authorHan-Wen Nienhuys <hanwen@xs4all.nl>
Sat, 6 Jan 2007 20:46:25 +0000 (21:46 +0100)
committerHan-Wen Nienhuys <hanwen@xs4all.nl>
Sat, 6 Jan 2007 20:46:25 +0000 (21:46 +0100)
buildscripts/build-profile.sh

index 887263d9e2d8ac000940e7dd8182cc60079bd37b..ee85ec77732004281d35bace7662036639d302c1 100755 (executable)
@@ -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