Ende.SystemMemoryInfo
interface
interface Ende.SystemMemoryInfoInformation returned from a call to Ende.systemMemoryInfo.
Properties
total
total: numberTotal installed memory in bytes.
free
free: numberUnused memory in bytes.
available
available: numberEstimation of how much memory, in bytes, is available for starting new applications, without swapping. Unlike the data provided by the cache or free fields, this field takes into account page cache and also that not all reclaimable memory will be reclaimed due to items being in use.
buffers
buffers: numberMemory used by kernel buffers.
cached
cached: numberMemory used by the page cache and slabs.
swapTotal
swapTotal: numberTotal swap memory.
swapFree
swapFree: numberUnused swap memory.
Ende.systemMemoryInfo
function ยท requires --allow-sys
function Ende.systemMemoryInfo(): SystemMemoryInfoDisplays the total amount of free and used physical and swap memory in the system, as well as the buffers and caches used by the kernel.
This is similar to the free command in Linux
console.log(Ende.systemMemoryInfo());
Requires allow-sys permission.