From: Han-Wen Nienhuys Date: Fri, 5 Jan 2007 01:56:09 +0000 (+0100) Subject: build-profile script X-Git-Tag: release/2.11.9-1~19 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=297afd09b9e7b76e1806411ad737496d59a4bb5b;p=lilypond.git build-profile script --- diff --git a/buildscripts/build-profile.sh b/buildscripts/build-profile.sh new file mode 100755 index 0000000000..b7ac93b613 --- /dev/null +++ b/buildscripts/build-profile.sh @@ -0,0 +1,36 @@ +#!/bin/sh + +if test "$1" == "--fresh"; then + fresh=yes +fi + +if test ! -f config-prof.make; then + fresh=yes +fi + +if test "$fresh" = "yes"; +then + ./configure --enable-config=prof --enable-optimising \ + && perl -i~ -pe 's/-pipe /-pg -pipe /g' config-prof.make \ + && perl -i~ -pe 's/ -ldl / -pg -ldl /g' config-prof.make +fi + +make conf=prof -j2 + +rm -rf out-prof +mkdir out-prof +cd out-prof + +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 + + +./bin/lilypond -ddump-profile -I ../input/ -I ../input/mutopia/J.S.Bach/ \ + -I ../input/mutopia/W.A.Mozart/ + wtk-fugue2 mozart-hrn-3 long-score + +gprof ./bin/lilypond