Platforms to show: All Mac Windows Linux Cross-Platform

Back to MemoryStatisticsMBS class.

MemoryStatisticsMBS.BytesFree as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property XojoRuntime MBS MacOSX Plugin 21.1 ✅ Yes ❌ No ✅ Yes ✅ Yes All
Number of bytes free.

Memory used for objects, but now available for reuse with new objects.
And can't be freed usually as several objects share same memory page, so we keep the page.
(Read only property)

Some examples using this property:

MemoryStatisticsMBS.BytesTotal as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property XojoRuntime MBS MacOSX Plugin 21.1 ✅ Yes ❌ No ✅ Yes ✅ Yes All
Total bytes allocated currently from OS.

Free and used blocks.
(Read only property)

Some examples using this property:

MemoryStatisticsMBS.BytesUsed as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property XojoRuntime MBS MacOSX Plugin 21.1 ✅ Yes ❌ No ✅ Yes ✅ Yes All
Used bytes of memory.

Within total memory, the number of bytes currently in use.
This is what Xojo reports for Runtime.MemoryUsed.
(Read only property)

MemoryStatisticsMBS.ChunksFree as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property XojoRuntime MBS MacOSX Plugin 21.1 ✅ Yes ❌ No ✅ Yes ✅ Yes All
Number of free chunks.

Could be freed.
(Read only property)

MemoryStatisticsMBS.ChunksUsed as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property XojoRuntime MBS MacOSX Plugin 21.1 ✅ Yes ❌ No ❌ No ✅ Yes All
Number of chunks in use.

Not available on Linux.
(Read only property)

The items on this page are in the following plugins: MBS MacOSX Plugin.


The biggest plugin in space...