guile-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Guile-commits] GNU Guile branch, master, updated. release_1-9-6-23-ga6d


From: Andy Wingo
Subject: [Guile-commits] GNU Guile branch, master, updated. release_1-9-6-23-ga6dc56a
Date: Sun, 20 Dec 2009 23:07:27 +0000

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU Guile".

http://git.savannah.gnu.org/cgit/guile.git/commit/?id=a6dc56a71e0085f9e0f889ecbb8b085f6c92da7b

The branch, master has been updated
       via  a6dc56a71e0085f9e0f889ecbb8b085f6c92da7b (commit)
      from  500f6a47e2609f936d43f47bcce4e429eb57997d (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit a6dc56a71e0085f9e0f889ecbb8b085f6c92da7b
Author: Andy Wingo <address@hidden>
Date:   Mon Dec 21 00:08:18 2009 +0100

    poor man's statprof integration with the repl: ,pr
    
    * module/system/repl/command.scm (profile): Add a very poor integration
      of statprof with the repl.

-----------------------------------------------------------------------

Summary of changes:
 module/system/repl/command.scm |   12 +++++++-----
 1 files changed, 7 insertions(+), 5 deletions(-)

diff --git a/module/system/repl/command.scm b/module/system/repl/command.scm
index 0b1434c..3e6e779 100644
--- a/module/system/repl/command.scm
+++ b/module/system/repl/command.scm
@@ -36,6 +36,7 @@
   #:use-module (ice-9 documentation)
   #:use-module (ice-9 and-let-star)
   #:use-module (ice-9 rdelim)
+  #:use-module (statprof)
   #:export (meta-command))
 
 
@@ -359,13 +360,14 @@ Time execution."
            (get identity gc-start gc-end))
     result))
 
-(define-meta-command (profile repl form . opts)
+(define-meta-command (profile repl (form) . opts)
   "profile FORM
 Profile execution."
-  (apply vm-profile
-         (repl-vm repl)
-         (repl-compile repl (repl-parse repl form))
-         opts))
+  ;; FIXME opts
+  (let ((vm (repl-vm repl))
+        (proc (make-program (repl-compile repl (repl-parse repl form)))))
+    (with-statprof #:hz 100 (vm proc))))
+
 
 
 ;;;


hooks/post-receive
-- 
GNU Guile




reply via email to

[Prev in Thread] Current Thread [Next in Thread]