Show.mem
From AGI Wiki
Revision as of 21:53, 21 April 2019 by Andrew Korson (talk | contribs) (Created page with "The '''show.mem''' command displays information on memory usage. == Syntax == show.mem(); == Remarks == This command is typically used during debugging to help manage me...")
The show.mem command displays information on memory usage.
Syntax
show.mem();
Remarks
This command is typically used during debugging to help manage memory usage. When called, show.mem displays a message box that shows the following memory usage statistics:
- Heapsize -- The total amount of memory available for use by the memory heap. For PC interpreter platform, this is 64KB minus the size of the AGIDATA.OVL overlay file).
- Now and Max -- The current and all time maximum amount of memory allocated to resources.
- Room.0, etc -- The size of the permanently loaded resources on the heap (known as 'room.0 resources'), such as logic 0, DIR files, object table, menus, etc.
- Max script: The all time maximum number of script entries made during the course of the game.
Possible Errors
None.
Example
Code:
<syntaxhighlight lang="agi"> if(said("show", "mem"))
{ show.mem(); }
</syntaxhighlight>
Technical Information
Required Interpreter Version: | Available in all AGI versions. |
Byte-Code Value: | 135 (0x87 hex) |
See Also
Debugging Commands
AGI Debugging Information
Memory Management in AGI