Next Previous Up Top Contents Index

9 The Profiler

9.2 Setting up the profiler

Before a profiling session can start several parameters must be set, using the functionset-up-profiler. This function is introduced here and the full syntax is given in the LispWorks Reference Manual. There are three main areas to consider: the symbols to be profiled, the time interval between samples, and the kind of profiling required.

The time the Lisp process is actually executing plus the time that the system is executing on behalf of the process. This is called profile time.
Just the time that the process is actually executing. This is called virtual time.
Real time.

Below is an example of setting up the profiler:

(set-up-profiler :symbols '(car cdr))

Here the functionscar andcdr are going to be profiled.

The functionset-up-profiler adds symbols to the*profile-symbol-list*. The functionsadd-symbol-profiler andremove-symbol-profiler can also be used to change the symbols profiled.

The functionset-profiler-threshold can be used withreset-profiler to control the effects of repeated profiler runs.


LispWorks User Guide - 14 Oct 1998

Next Previous Up Top Contents Index

Generated with Harlequin WebMaker