profile-stack-group-p

$Revision: 5.0.2.4 $

Function

Package: MULTIPROCESSING

Arguments: (SG-OR-PROCESS)

This function returns the value of the profile-stack-group-p flag for the stack group or process specified by the argument. If the value of the flag is non-nil, then the space and time profilers will collect samples when this stack group or process is executing.

If sg-or-process is a stack group, all stack-groups which are created from it will inherit the current value of this flag at the time the stack-group is created (unless a specific value is given for the profile argument to mp:make-stack-group).

This value may be changed with setf.

USE OF THIS FUNCTION IS DEPRECATED.

Allegro CL has two models of multiprocessing, the :os-threads model and the non :os-threads model, so named because :os-threads is on the *features* list of versions that use it. This function is used only by the non :os-threads model. The symbol naming this variable does not exist in versions using the :os-threads model. Conditionalize uses of this symbol in code that might be ported between versions with #-os-threads.

Note that in the future, all versions of Allegro CL may use the :os-threads model and code using this function will not work.

The :os-threads version of this function is mp:profile-process-p but that function does not work in non :os-threads versions. Since this is a useful function, you may wish to write code like:

#-os-threads (mp:profile-stack-group-p ...) #+os-threads (mp:profile-process-p ...)

as that will port without problem to an :os-threads version.

See multiprocessing.htm for general information on multiprocessing in Allegro CL.

The general documentation description is in introduction.htm. The index in index.htm.

Copyright (C) 1998-1999, Franz Inc., Berkeley, CA. All Rights Reserved.