LlScriptProfiler
De DigiWiki.
llScriptProfiler(PROFILE_SCRIPT_MEMORY); my_func(); llScriptProfiler(PROFILE_NONE); llOwnerSay("This script used at most " + (string)llGetSPMaxMemory() + " bytes of memory during my_func.");
llScriptProfiler(PROFILE_SCRIPT_MEMORY); my_func(); llScriptProfiler(PROFILE_NONE); llOwnerSay("This script used at most " + (string)llGetSPMaxMemory() + " bytes of memory during my_func.");