llGetSPMaxMemory
DirectoryllGetSPMaxMemory integer
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.