|  |  D.2.3.9 kmemory Procedure from librarygeneral.lib(see  general_lib).
 
Example:Usage:
kmemory([n,[v]]); n,v integers
Return:
memory in kilobyte of type bigint
n=0: memory used by active variables (same as no parameters)
 n=1: total memory allocated by Singular
 
Display:
detailed information about allocated and used memory if v!=0
Note:
kmemory uses internal function 'memory' to compute kilobyte, and
is the same as 'memory' for n!=0,1,2
 |  | LIB "general.lib";
kmemory();
==> 171
kmemory(1,1);
==> // total memory allocated, at the moment, by SINGULAR (kilobyte):
==> 2156
 | 
 
 |