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

Resets the heap's statistics.

int heap_stats_reset(void);

Parameters

None.

Remarks

A call to heap_stats_reset/mpool_stats_reset clears the following fields:

ttl_alloc_failures
ttl_alloc_ops
ttl_blk_alloc_ops
ttl_blk_free_ops
ttl_consolidations_back
ttl_consolidations_fore
ttl_free_ops
ttl_realloc_alloc_failures
ttl_realloc_alloc_fallback
ttl_realloc_contract
ttl_realloc_contract_failures
ttl_realloc_expand
ttl_realloc_expand_failures
ttl_realloc_ops 

All other fields are calculated by a call to mpool_stats/heap_stats.

Return Values

0 (zero)
Success.
Less than 0 (zero)
Failure. The function sets errno to one of these values:
EINVAL The heap is not a valid MPOOL.

Requirements

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