Memory
(Engine-Level Function)
Description: | Returns the amount of memory that VTScada has acquired from the OS heap for internal use. |
Returns: | Numeric |
Usage: | Script Only. |
Function Groups: | Memory I/O |
Related to: | Memory MemTrace |
Format: | Memory([Reserved, JustThisBubble]) |
Parameters: |
Reserved |
Leave blank or set to Invalid if using the second parameter. |
JustThisBubble |
Optional Boolean. Set to TRUE to get just the memory use for the current bubble. FALSE (the default) gets the global memory use across all of VTScada. |
Comments: |
The value returned is not the total amount of memory used by the VTScada process as it does not include other allocations that may be made from the OS heap. While the value reported when JustThisBubble is TRUE is accurate up to that instant, the global memory use value is only updated internally approximately every second. |
Example:
If ! Valid(memUsed); [ memUsed = Memory(); ]