ScriptProfileMode
Constants in the ScriptProfileMode enum.
integer PROFILE_NONE = 0; // Disables script profiling.integer PROFILE_SCRIPT_MEMORY = 1; // Enables script memory profiling, tracking the maximum amount of memory consumed while it is active.
Constants
| Constant | Type | Value | Description |
|---|---|---|---|
PROFILE_NONE | integer | 0 | Disables script profiling. |
PROFILE_SCRIPT_MEMORY | integer | 1 | Enables script memory profiling, tracking the maximum amount of memory consumed while it is active. |
Used by
llScriptProfilerfunctionEnables or disables the script's profiling state using flags (supports PROFILE_SCRIPT_MEMORY on Mono, or PROFILE_NONE). Active profiling can significantly reduce script performance.