llGetUsedMemory
LSLinteger llGetUsedMemory()
Returns the current used memory for the current script. Non-mono scripts always use 16K.\ Returns the integer of the number of bytes of memory currently in use by the script. Non-mono scripts always use 16K.
Takes no parameters.
The Linden Scripting Library — what every SL-compatible grid provides.