memSize

Syntax

memSize(obj)

Arguments

obj is an object.

Details

Return the memory usage (in units of bytes) of a local or shared object.

Examples

$ $ n=100
$ ID=rand(100, n)
$ date=rand(2017.08.07..2017.08.11, n)
$ x=rand(10.0, n)
$ t=table(ID, date, x);
$ share t as tt
$ memSize(t)
1952
$ memSize(tt)
1952
$ memSize(t[`x])
800
$ memSize(select avg(x) as avgx from t)
280

Related functions: objs