5 The @code{sb-sprof} module provides an alternate profiler which works by
6 taking samples of the program execution at regular intervals, instead of
7 instrumenting functions like @code{profile} does. You might find
8 @code{sb-sprof} more useful than @code{profile} when profiling functions
9 in the @code{common-lisp}-package, SBCL internals, or code where the
10 instrumenting overhead is excessive. On the other hand it only works on
11 x86, and isn't completely reliable even there.
13 @subsection Example Usage
17 (sb-sprof:start-profiling)
20 (dotimes (i (expt 2 26))
21 (setf *a* (logxor *a* (* i 5)
24 (sb-sprof:stop-profiling)
30 @include fun-sb-sprof-report.texinfo
32 @include fun-sb-sprof-reset.texinfo
34 @include fun-sb-sprof-start-profiling.texinfo
36 @include fun-sb-sprof-stop-profiling.texinfo
40 @include macro-sb-sprof-with-profiling.texinfo
44 @include var-sb-sprof-star-max-samples-star.texinfo
46 @include var-sb-sprof-star-sample-interval-star.texinfo
50 @code{sb-sprof} is an SBCL port of Gerd Moellmann's statistical profiler