with-sampling

Macro

Package: prof

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)
  
  (stop-sampling)

The :verbose argument, if true (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 documentation is described in introduction.htm and the index is in index.htm.

Copyright (c) 1998-2000, Franz Inc. Berkeley, CA., USA. All rights reserved.

Created 2000.10.5.