llGetUsedMemory
DirectoryllGetUsedMemory integer
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.