# PROFILE_SCRIPT_MEMORY

*LSL constant*

```lsl
integer PROFILE_SCRIPT_MEMORY = 1;
```

Constant groups: [ScriptProfileMode](/constants/groups/ScriptProfileMode/)

Enables script memory profiling, tracking the maximum amount of memory consumed while it is active.

## History

- [Preview Grid](https://wiki.secondlife.com/wiki/Preview_Grid) channel [mono2performance](https://wiki.secondlife.com/wiki/Mono2), April 2011

## See also

### Constants

| Constant | Type | Value | Description |
| --- | --- | --- | --- |
| [PROFILE_NONE](/constants/PROFILE_NONE/) |  |  |  |

### Functions

- [llScriptProfiler](/functions/llScriptProfiler/)

---

*Source: [PROFILE SCRIPT MEMORY](https://wiki.secondlife.com/wiki/PROFILE_SCRIPT_MEMORY) on the Second Life Wiki. Content from the Second Life Wiki article PROFILE SCRIPT MEMORY (revision 1215226, 2023-10-29), CC BY-SA 3.0.*

---

From lsl.dev: https://lsl.dev/constants/PROFILE_SCRIPT_MEMORY/
