))
(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)))))
(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)))