Up: GEOS SDK TechDocs | Up | Prev: getenv ... | Next: help ...

handsum

handsum

Examples:

"handsum"
Summarize the use to which the handle table is being put.

This command analyzes the handle table and prints out a list of the number of handles being used by each geode, and for what purpose.

hbrk

    hbrk <address> (byte|word) (match|mismatch) <value>

Examples:

"hbrk scrollTab+10 byte match 0"
print message handlers until a zero is written at scrollTab+10.
"hbrk OLScrollButton+3 word mismatch 0x654f"
Break when the word at OLScrollButton+3 is destroyed.

Break when a memory location changes.

See Also: brk, mwatch, showcalls.

heapspace

heapspace <geode>
heapspace total 
heapspace syslib 

Examples:

"heapspace geomanager"
print out "heapspace" value for geomanager
"heapspace total"
print out maxTotalHeapSpace
"heapspace syslib"
print out space being used by system libraries.

Prints out how much space the program requires on the heap. This value may then be used in a "heapspace" line of the program's .gp field. This command only determines present usage--to determine the most heapspace your geode will ever use requires that you make it allocate as much space as it ever will. This means pulling down all menus, opening all dialog boxes, and generally building out all UI gadgetry. The value this command prints is roughly the non-discardable heap usage by the app and any transient libraries that it depends on, plus an additional amount for thread activity.

When using this command, you should run your application on the device it is to run on. One or more system libraries may be XIP (running from ROM) on the device, but run from RAM on your target PC's emulator. Thus, to get a more accurate picture of memory usage, run the application on the planned device.


Up: GEOS SDK TechDocs | Up | Prev: getenv ... | Next: help ...