<< isvar | Memory manager functions | persistent >> |
memory |
usermem = memory() |
[usermem, systemmem] = memory() |
Get information about user memory (an struct).
Get information about system memory (an struct)
memory get memory information.
User Memory: returns Maximum Possible Array (MaxPossibleArrayBytes), Memory Available for All Arrays (MemAvailableAllArrays), Memory Used By Nelson (MemUsedNelson).
System Memory:
VirtualAddressSpace.Available: available swap file space
VirtualAddressSpace.Total: total swap file space
SystemMemory.Available: available system memory
PhysicalMemory.Available: available physical memory
PhysicalMemory.Total: total physical memory
memory()
A = ones(1000);
memory()
clear('A');
[u1, s1] = memory();
A = ones(1000);
[u2, s2] = memory();
disp(u2.MemUsedNelson - u1.MemUsedNelson);
clear('A');
[u3, s3] = memory();
disp(u3.MemUsedNelson - u2.MemUsedNelson);
[u1, s1] = memory()
Version | Description |
---|---|
1.0.0 | initial version |
Allan CORNET