Description
CLIP provides a number of memory monitoring functions. These are useful for system monitoring and reporting.
Generation
The ClpMemAllocated function can be used to report on the amount of memory reserved by CLIP for its runtime heap, that is currently in use.
Uns ClpMemAllocated();
Return
The function returns the amount of memory in use in bytes.
Examples
Uns AppCct_MonitorMthdElem()::Process()
{
...
const Uns memFreeMB = (gMEMORY - ClpMemAllocated()) / MB;
const Uns memFreePC = 100 * memFreeMB / (gMEMORY / MB);
ClpDiag( "Free Memory %dMB %d%%\n", memFreeMB, memFreePC );
...
}