(time < exp>)
to display, in an
implementation dependent format, some measure of how long it takes to
evaluate the expression. Some implementations print a nice summary of the
time taken, including time for garbage collection, etc
To get a time profile of an expression, type
(prof:with-profiling (:type :time) < exp>)
To get a space profile of an expression, type
(prof:with-profiling (:type :space) < exp>)
:time
is the default value
The profiling package creates a flat profile, that shows time or space
information sorted by function. Time is shown only if the function is
at the top of the stack. To display the flat profile type
(prof:show-flat-profile)
You can also display the call graph. It will show information about the
callers and callees of each function. To see it type
(prof:show-call-graph)
(mon:with-monitoring (names*) () your-forms*)
or
(mon:monitor-form your-form)
The former allows you to specify which functions will be monitored;
the
latter monitors all functions in the current package. Both
automatically
produce a table of statistics. Other variants can be constructed from
the monitoring primitives, which are described below, along with a
fuller description of these two macros.