Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old

App.MemoryUsed

Queries amount of memory used.

Component Version macOS Windows Linux Server iOS SDK
App 6.5 ✅ Yes ✅ Yes ❌ No ✅ Yes, on macOS and Windows ❌ No
MBS( "App.MemoryUsed" )

Parameters

none

Result

Returns number or error.

Description

Queries amount of memory used.
This is to query the memory used in bytes for the current application.
On Server this would query the scripting process.
The value returned is not exactly the same as in Task Manager or Activity Monitor as this includes some shared memory for your process, which those don't count per app.

See also App.CompactMemory for Windows to reduce memory.

Examples

Query memory used

Round(MBS("App.MemoryUsed") / 1024 / 1024; 0) & " MB"

See also

Blog Entries

This function checks for a license.

Created 15th November 2016, last changed 23th November 2018


App.GetProcessPath - App.OpenFile