summaryrefslogtreecommitdiff
path: root/module/statprof.scm
diff options
context:
space:
mode:
authorAndy Wingo <wingo@pobox.com>2014-02-28 11:57:12 +0100
committerAndy Wingo <wingo@pobox.com>2014-02-28 17:18:19 +0100
commit188e2ae36b2370dc8a6ec7b6c55732a7434643c3 (patch)
treeccf6f8259e0f13e5556202005d6482f1a64f39ed /module/statprof.scm
parent13a977dd7916c0cf7ff98132f502167cbcde09e9 (diff)
downloadguile-188e2ae36b2370dc8a6ec7b6c55732a7434643c3.tar.gz
Update statprof commentary
* module/statprof.scm: Update commentary.
Diffstat (limited to 'module/statprof.scm')
-rw-r--r--module/statprof.scm15
1 files changed, 6 insertions, 9 deletions
diff --git a/module/statprof.scm b/module/statprof.scm
index 9f9ec22e3..aefc69eb2 100644
--- a/module/statprof.scm
+++ b/module/statprof.scm
@@ -28,17 +28,14 @@
;;; A simple use of statprof would look like this:
;;;
;;; @example
-;;; (statprof-reset 0 50000 #t)
-;;; (statprof-start)
-;;; (do-something)
-;;; (statprof-stop)
-;;; (statprof-display)
+;;; (statprof (lambda () (do-something))
+;;; #:hz 100
+;;; #:count-calls? #t)
;;; @end example
;;;
-;;; This would reset statprof, clearing all accumulated statistics, then
-;;; start profiling, run some code, stop profiling, and finally display a
-;;; gprof flat-style table of statistics which will look something like
-;;; this:
+;;; This would run the thunk with statistical profiling, finally
+;;; displaying a gprof flat-style table of statistics which could
+;;; something like this:
;;;
;;; @example
;;; % cumulative self self total