Next: Statistical Profiler, Up: Profiling
The package sb-profile provides a classic, per-function-call
profiler.
NOTE: When profiling code executed by multiple threads in parallel, the consing attributed to each function is inaccurate.
profileName*If no names are supplied, return the list of profiled functions.
If names are supplied, wrap profiling code around the named functions. As in
trace, the names are not evaluated. A symbol names a function. A string names all the functions named by symbols in the named package. If a function is already profiled, then unprofile and reprofile (useful to notice function redefinition.) If a name is undefined, then we give a warning and ignore it. See alsounprofile,reportandreset.
Unwrap any profiling code around the named functions, or if no names are given, unprofile all profiled functions. A symbol names a function. A string names all the functions named by symbols in the named package.
namesdefaults to the list of names of all currently profiled functions.