with-sampling

$Revision: 5.0.2.2 $

Macro

Package: PROFILER

Arguments: ((&key verbose) &body body)

Calling this macro is equivalent to the following code sequence, with the exception that the macro returns the result of the body.

(start-sampling)
<body>
(stop-sampling)

The :verbose argument, if non-nil (default is nil), causes status messages to be printed to *standard-output* during the profile.

The body argument must be one or more forms. The system will sample until the last form in body has been evaluated, then sampling will stop. This macro returns the result of the body.

See profiling.htm for general information on profiling. Note that the profiler is not available with some Allegro CL products.

The general documentation description is in introduction.htm. The index in index.htm.

Copyright (C) 1998-1999, Franz Inc., Berkeley, CA. All Rights Reserved.