profiledochook
profiledochook
Function prototype:
hook(doc)
Synopsis
Use with:
add_hook(hookname, func[, prepend])
remove_hook(hookname, func)
where hookname is profiledochook.
The
profile_config() built-in function calls this hook to allow an alternate profiling configuration document to be specified in place of the one specified in the
.dcf file.
Argument
doc is the document identifier of the instance being loaded.
The hook function can return -1 to disable profiling for the document, 0 to use the default profile document as returned by profile_config(), or the document identifier of a profiling configuration document loaded by the hook function. The hook function may call profile_config() if necessary.