]> git.donarmstrong.com Git - lilypond.git/commitdiff
also work with -ddump-profile.
authorHan-Wen Nienhuys <hanwen@xs4all.nl>
Tue, 2 Jan 2007 15:34:34 +0000 (16:34 +0100)
committerHan-Wen Nienhuys <hanwen@xs4all.nl>
Tue, 2 Jan 2007 15:34:34 +0000 (16:34 +0100)
scm/lily.scm

index 8f2b1e1873a41473f75c7dbc107769d3e3511d81..d2b3ea95e7c79c2c9dd5f3138a7266e61e2043fe 100644 (file)
@@ -568,7 +568,7 @@ The syntax is the same as `define*-public'."
        ))
   
   (let* ((failed '())
-        (start-measurements (ly:get-option 'profile-measurements))
+        (start-measurements (ly:get-option 'dump-profile))
         (handler (lambda (key failed-file)
                    (set! failed (append (list failed-file) failed)))))
 
@@ -579,7 +579,7 @@ The syntax is the same as `define*-public'."
        (if start-measurements
           (set! start-measurements (profile-measurements)))
        (lilypond-file handler x)
-       (if (ly:get-option 'dump-profile)
+       (if start-measurements
           (dump-profile x start-measurements (profile-measurements)))