INtime SDK Help
heap_stats
INtime SDK v7 > About INtime > Other system libraries > Heaps and memory pools > C/C++ Runtime heap > heap_stats

Gets the heap's statistics.

int heap_stats(
    MPOOL_STATS * stats
);

Parameters

stats
Pointer to a statistics structure.

Remarks

Use this call only in a low-priority context as it may slow your system. The process' heap is locked for the duration of the call.

Return Values

0 (zero)
Success.
Less than 0 (zero)
Failure. The function sets errno to one of these values:
EINVAL The pool is not a valid MPOOL, the value of stats is NULL, or an internal error was detected.

Requirements

Versions Defined in Include Link to
INtime 4.0 intime/rt/include/heap.h heap.h clib.lib
   
See Also