array GetMemoryUsage ()
Returns memory usage
information in array.
Call this function to get memory usage. The resut array
contains the following elements:
A number between 0 and 100 that specifies the approximate
percentage of physical memory that is in use (0 indicates no memory
use and 100 indicates full memory use).
The amount of actual physical memory, in bytes.
The amount of physical memory currently available, in bytes.
This is the amount of physical memory that can be immediately
reused without having to write its contents to disk first. It is
the sum of the size of the standby, free, and zero lists.
The current committed memory limit for the system or the current
process, whichever is smaller, in bytes.
The maximum amount of memory the current process can commit, in
bytes. This value is equal to or smaller than the system-wide
available commit value.
The size of the user-mode portion of the virtual address space
of the calling process, in bytes. This value depends on the type of
process, the type of processor, and the configuration of the
operating system. For example, this value is approximately 2 GB for
most 32-bit processes on an x86 processor and approximately 3 GB
for 32-bit processes that are large address aware running on a
4-gigabyte tuning enabled.
The amount of unreserved and uncommitted memory currently in the
user-mode portion of the virtual address space of the calling
process, in bytes.
Plug-in module: nd_process.npl
The following example demonstrates the use of
int nCPU = GetProcessorUsage()
Println("CPU Usage: ", nCPU)
array memory = GetMemoryUsage()
Println("Memory Usage: ")