]> git.donarmstrong.com Git - lilypond.git/commitdiff
switch on memory tracking, document how to use.
authorHan-Wen Nienhuys <hanwen@xs4all.nl>
Wed, 3 Jan 2007 17:41:13 +0000 (18:41 +0100)
committerHan-Wen Nienhuys <hanwen@xs4all.nl>
Wed, 3 Jan 2007 17:41:13 +0000 (18:41 +0100)
Documentation/topdocs/INSTALL.texi
scm/lily.scm

index 23b1d21c1095fbf62f149eef5b8fa10250ce9d78..0dc4d36e2d81d13b63a54bba75b6d9da569a4047 100644 (file)
@@ -116,7 +116,7 @@ software
 @item @uref{http://www.freetype.org/,FontConfig} (version 2.2).
 @item @uref{http://www.pango.org/,Pango} (version 1.12 or newer).
 @item @uref{http://www.gnu.org/software/guile/guile.html,GUILE}
-(version 1.8.2 or newer), or patch 1.8.x with
+(version 1.8.2 or newer), or patch 1.8.1 with
 @uref{http://lilypond.org/vc/gub.darcs/patches/guile-1.8-rational.patch}.
 @item @uref{http://www.python.org,Python} (version 2.4 or newer).
 @item @uref{http://www.ghostscript.com,Ghostscript} (version 8.15 or
@@ -183,6 +183,10 @@ To rerun tests, use
 @noindent
 and then run @code{make check} again.
 
+For tracking memory usage as part of this test, you will need GUILE
+CVS; especially the following patch:
+@uref{http://lilypond.org/vc/gub.darcs/patches/guile-1.9-gcstats.patch}.
+
 
 @section Building LilyPond
 
index 55fdd0eeb37546b04673b345e0486ba5d128f622..d7233471aa6c944c5c6c6a30bd20caa1f84be856 100644 (file)
@@ -106,7 +106,8 @@ on errors, and print a stack trace.")
 
 
 ;; my display
-(define-public (myd k v) (display k) (display ": ") (display v) (display ", "))
+(define-public (myd k v) (display k) (display ": ") (display v) (display ", ")
+  v)
 
 (define-public (print . args)
   (apply format (cons (current-output-port) args)))
@@ -371,7 +372,7 @@ The syntax is the same as `define*-public'."
        (ly:assoc-get 'gc-time-taken stats))
      
      ;; unreliable...
-     ;; (ly:assoc-get 'total-cells-allocated  stats 0)
+     (ly:assoc-get 'total-cells-allocated  stats 0)
      ;; difficult to put memory amount stats into here.
      
      )))
@@ -383,10 +384,9 @@ The syntax is the same as `define*-public'."
     
     (ly:progress "\nWriting timing to ~a..." outname)
     (format (open-file outname "w")
-;          "time: ~a\ncells: ~a\n"
-           "time: ~a\n"
+           "time: ~a\ncells: ~a\n"
            (car diff)
-;          (cadr diff)
+           (cadr diff)
            )))