Native Inspect Manual (H06.13+, J06.03+)

Examples
To obtain a heap profile, perform the following steps:
1. Run the debugger, load the program, and issue the set heap-check on command:
For 32-bit application:
TACL> rund minheap /lib $system.sys00.zrtcdll/ executable arguments
(eInspect 0,248)set heap-check on
For 64-bit application:
TACL> run minheap -lib=/G/system/sys00/yrtcdll executable arguments
(eInspect 0,248)set heap-check on
See set heap-check Command (memory leak detection) (page 115) for a description of the
set heap-check on command.
2. Set a breakpoint by entering the following command:
(eInspect 0,248)b probepoint
where probepoint is some interesting point in the application being debugged.
3. Run the program by entering the following command:
(eInspect 0,248)run
4. When the program is stopped at a breakpoint, enter the following info heap command:
(eInspect 0,248)info heap
The following output is displayed:
Analyzing heap ...done
Actual Heap Usage:
Heap Start =0x40408000
Heap End =0x4041a900
Heap Size =76288 bytes
Outstanding Allocations:
41558 bytes allocated in 28 blocks
No. Total bytes Blocks Address Function
0 34567 1 0x40411000 myfunc()
1 4096 1 0x7bd63000 bar()
2 1234 1 0x40419710 baz()
3 245 8 0x404108b0 boo()
[...]
info Command (memory leak detection) 91