getMemoryStat
Syntax
getMemoryStat()
Details
Return the allocated memory and the unused memory.
Parameters
None
Returns
It returns a dictionary with the following keys:
-
freeBytes: the allocated memory (in Bytes) for the current node.
-
allocatedBytes: the unused memory (in Bytes) for the current node.
Examples
getMemoryStat();
/* output:
freeBytes->6430128
allocatedBytes->35463168
*/
