Skip to content

llGetSPMaxMemory

function ll.GetSPMaxMemory(): number

Returns the maximum used memory for the current script. Only valid after using PROFILE_SCRIPT_MEMORY. Non-mono scripts always use 16k.

Returns the integer of the most bytes used while llScriptProfiler was last active.

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

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