Skip to content

llScriptProfiler

function ll.ScriptProfiler(State: number)

Enables or disables script profiling options. Currently only supports PROFILE_SCRIPT_MEMORY (Mono only) and PROFILE_NONE.

May significantly reduce script performance.

Parameters
State (number)
PROFILE_NONE or PROFILE_SCRIPT_MEMORY flags to control the state.

Add example usage here showing SLua/Luau syntax with ll.ScriptProfiler().

Add additional notes, caveats, or tips specific to using this function in SLua/Luau.