All Manuals > LispWorks® User Guide and Reference Manual > 37 The HCL Package

profile Macro

Summary

Profile while executing some forms.

Package

hcl

Signature

profile &body forms => results-of-final-form

Arguments
forms
Lisp forms.
Values
results-of-final-form
Results of the final form in forms.
Description

The macro profile starts the profiler, evaluates forms, stops the profiler, reports the results of the profiling, and then returns the results of the last form in forms.

The profiler is described in 12 The Profiler.

Notes

profile profiles all processes. For better control of this, use start-profiling or do-profiling.

If profile is invoked before set-up-profiler was ever called, it calls set-up-profiler implicitly without arguments.

profile cannot be called while another profiling operation is running, either by a parallel call to profile or start-profiling.

See also

start-profiling
stop-profiling
set-up-profiler
12 The Profiler
11.2 Guidance for control of the memory management system


LispWorks® User Guide and Reference Manual - 01 Dec 2021 19:30:35