MacroPackage: profToCDocOverviewCGDocRelNotesIndexPermutedIndex
Allegro CL version 6.2
Unrevised from 6.1

with-profiling

Arguments: (&key type except-stack-groups count count-list verbose start-sampling-p interpret-closures) &body body

This macro profiles the execution of body by starting the profiler, executing body, and then stopping the profiler. This call to this macro:

(with-profiling (:type :time [other args]) body)

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

(start-profiler :type :time [other args specified to with-profiling])
<body>
(stop-profiler)

The other keyword arguments are the same as the equivalent arguments to start-profiler. See also stop-profiler.

The body argument must be a form or sequence of forms. The system will run the profiler until the last form in body has been evaluated. Then the profiler will stop.

This macro returns the value returned by the body.

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


Copyright (c) 1998-2002, Franz Inc. Oakland, CA., USA. All rights reserved.
Documentation for Allegro CL version 6.2. This page was not revised from the 6.1 page.
Created 2002.2.26.

ToCDocOverviewCGDocRelNotesIndexPermutedIndex
Allegro CL version 6.2
Unrevised from 6.1