ll.GetSPMaxMemory

ll.GetSPMaxMemory () -> number

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.

Example

ll.GetSPMaxMemory()
Raw function spec json
{
  "def": "func",
  "desc": "Returns the maximum used memory for the current script. Only valid after using PROFILE_SCRIPT_MEMORY. Non-mono scripts always use 16k.\nReturns the integer of the most bytes used while llScriptProfiler was last active.",
  "energy": 10,
  "sleep": 0,
  "must_use": true,
  "link": "https://wiki.secondlife.com/wiki/LlGetSPMaxMemory",
  "private": false,
  "takesSelf": false,
  "name": "GetSPMaxMemory",
  "signatures": [
    {
      "def": "signature",
      "result": [
        {
          "name": "",
          "def": "result",
          "desc": "",
          "variadic": false,
          "type": [
            {
              "def": "simple",
              "value": "number"
            }
          ],
          "optional": false
        }
      ],
      "args": []
    }
  ]
}

< Back to ll