Difference between revisions of "Runtime.MemoryUsed"

From Xojo Documentation

m
 
Line 10: Line 10:
 
{{Description
 
{{Description
 
|text = Returns the total amount of memory used (in bytes) by the allocated objects.}}
 
|text = Returns the total amount of memory used (in bytes) by the allocated objects.}}
 
  
 
== Notes ==
 
== Notes ==
 
More specifically, this returns the number of malloc'd bytes. Since the OS does not immediately give back memory after it is released there is no guarantee that this number will match OS values that you see in Activity Monitor, Task Manager or top.
 
More specifically, this returns the number of malloc'd bytes. Since the OS does not immediately give back memory after it is released there is no guarantee that this number will match OS values that you see in Activity Monitor, Task Manager or top.

Latest revision as of 13:35, 15 August 2017

Read-Only Property (As UInt64 )
UInt64Value = aRuntime.MemoryUsed

Supported for all project types and targets.

Returns the total amount of memory used (in bytes) by the allocated objects.

Notes

More specifically, this returns the number of malloc'd bytes. Since the OS does not immediately give back memory after it is released there is no guarantee that this number will match OS values that you see in Activity Monitor, Task Manager or top.