Getting Started | Documentation | Glish | Learn More | Programming | Contact Us |
Version 1.9 Build 1556 |
|
The sizeof() function will return the amount of memory used by an individual value. For example:
sizeof(1:10) sizeof([x=1:10,y=1:10])might return 84 and 372.
There is also a function which returns the amount of memory used by the
Glish interpreter, alloc_info(). This function uses info from
Glish's allocation library to display both the amount of memory the
interpreter is currently using and the memory it has allocated but is not
currently using. A call to alloc_info()
would return a record like:
[used=176424, unused=10664]This function takes no parameters.