problem.printmemory
problem.printmemory |
Purpose
Print the dimensions and memory allocations for a problem
Synopsis
problem.printmemory()
Example
The following example loads a problem from file and then prints the dimensions of the arrays.
p.readprob("Matrix1", "") p.printmemory()
The output is similar to the following:
Arrays and dimensions: Array Item Used Max Allocated Memory Size Items Items Memory Control MemList 28 103 129 4K String 1 8779 13107 13K xslp_MEM_STRING Xv 16 2 1000 16K xslp_MEM_XV Xvitem 48 11 1000 47K xslp_MEM_XVITEM ....
Further information
printmemory lists the current sizes and amounts used of the variable arrays in the current problem. For each array, the size of each item, the number used and the number allocated are shown, together with the size of memory allocated and, where appropriate, the name of the memory control variable to set the array size. Loading and execution of some problems can be speeded up by setting the memory controls immediately after the problem is created. If an array has to be moved to re-allocate it with a larger size, there may be insufficient memory to hold both the old and new versions; pre-setting the memory controls reduces the number of such re-allocations which take place and may allow larger problems to be solved.