Getting Started Documentation Glish Learn More Programming Contact Us
Version 1.9 Build 1556
News FAQ
Search Home


next up previous contents index
Next: Global Variables Up: Predefined Functions and Variables Previous: Manipulating Agents


Memory Usage

There are a couple of functions available to check memory usage both by the Glish interpreter and by individual values.

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.


next up previous contents index
Next: Global Variables Up: Predefined Functions and Variables Previous: Manipulating Agents   Contents   Index
Please send questions or comments about AIPS++ to aips2-request@nrao.edu.
Copyright © 1995-2000 Associated Universities Inc., Washington, D.C.

Return to AIPS++ Home Page
2006-10-15