Difference between revisions of "LlGetFreeMemory"

From Second Life Wiki
Jump to: navigation, search
(Example showing memory usage)
Line 9: Line 9:
 
|caveats
 
|caveats
 
|constants
 
|constants
|examples
+
|examples=
 +
 
 +
// To show usage of memory by a script, take the free memory from 16k
 +
 
 +
  llOwnerSay("Script uses " + (string)((16384 - llGetFreeMemory())/1024) + " kBytes");
 +
 
 
|helpers
 
|helpers
 
|also_functions
 
|also_functions

Revision as of 11:49, 15 April 2007

Summary

Function: integer llGetFreeMemory( );

Returns an integer that is the available heap space for the current script.

Examples

// To show usage of memory by a script, take the free memory from 16k

llOwnerSay("Script uses " + (string)((16384 - llGetFreeMemory())/1024) + " kBytes");

Deep Notes

Search JIRA for related Issues

Signature

function integer llGetFreeMemory();