mem

Syntax

mem([freeUnusedBlocks=false])

Details

Display the memory usage of the current node. If freeUnusedBlocks=true, free unused memory blocks.

Parameters

freeUnusedBlocks is of DOUBLE type, with a range of 0 to 1, representing the percentage of unused memory blocks to be freed. The default value is false.

Returns

A dictionary.

Examples

undef all;
t1=table(1 2 3 as a, `x`y`z as b, 10.8 7.6 3.5 as c)
mem();

// output
freeBytes->492904
allocatedBytes->8454144


x=bigarray(INT,100000,10000000)
mem();

// output
freeBytes->491056
allocatedBytes->12648448


undef all;
mem();

// output
freeBytes->4687936
allocatedBytes->12648448