llGetSPMaxMemory
LSLinteger llGetSPMaxMemory()
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.
Takes no parameters.
Energy
10
The Linden Scripting Library — what every SL-compatible grid provides.