X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=contrib%2Fsb-sprof%2Fsb-sprof.texinfo;h=b487b7963802a725155056e58d6813ce7df81ccf;hb=54b330585ed41edeb93a289f0e59aec67fa9ded9;hp=3031d82889eded89fa21090bf9cd2eb12b0787e4;hpb=8b64d57b865fec6ba082dda965146b5e8aa877b3;p=sbcl.git diff --git a/contrib/sb-sprof/sb-sprof.texinfo b/contrib/sb-sprof/sb-sprof.texinfo index 3031d82..b487b79 100644 --- a/contrib/sb-sprof/sb-sprof.texinfo +++ b/contrib/sb-sprof/sb-sprof.texinfo @@ -1,13 +1,15 @@ -@node sb-sprof -@section sb-sprof -@cindex Profiler +@cindex Profiling, statistical -The @code{sb-sprof} module provides an alternate profiler which works by -taking samples of the program execution at regular intervals, instead of -instrumenting functions like @code{profile} does. You might find -@code{sb-sprof} more useful than @code{profile} when profiling functions -in the @code{common-lisp}-package, SBCL internals, or code where the -instrumenting overhead is excessive. +The @code{sb-sprof} module, loadable by +@lisp +(require :sb-sprof) +@end lisp +provides an alternate profiler which works by taking samples of the +program execution at regular intervals, instead of instrumenting +functions like @code{sb-profile:profile} does. You might find +@code{sb-sprof} more useful than accurate profiler when profiling +functions in the @code{common-lisp}-package, SBCL internals, or code +where the instrumenting overhead is excessive. This module is known not to work consistently on the Alpha platform, for technical reasons related to the implementation of a machine @@ -30,6 +32,11 @@ and the deficiency on the Alpha will eventually be rectified. (sb-sprof:report) @end lisp +The profiler hooks into the disassembler such that instructions which +have been sampled are annotated with their relative frequency of +sampling. This information is not stored across different sampling +runs. @c FIXME: maybe it should be? + @subsection Functions @include fun-sb-sprof-report.texinfo @@ -52,5 +59,5 @@ and the deficiency on the Alpha will eventually be rectified. @subsection Credits -@code{sb-sprof} is an SBCL port of Gerd Moellmann's statistical profiler -for CMUCL. +@code{sb-sprof} is an SBCL port, with enhancements, of Gerd +Moellmann's statistical profiler for CMUCL.