IsProfilingEnabled (open)

Returns whether profiling is enabled. If so, jobs and processes need extra care so they can shutdown cleanly (eg using TerminateScript) so they can send they profiles before being closed

Syntax

LOADLIB "wh::internal/debug.whlib";

BOOLEAN FUNCTION IsProfilingEnabled()

Return value

BOOLEAN

TRUE if currently profiling