INtime SDK Help
mpool_stats_reset
INtime SDK v7.1 > About INtime > Other system libraries > Heaps and memory pools > Memory pools > mpool_stats_reset

Resets the statistics for a memory pool.

BOOLEAN mpool_stats_reset(
    MPOOL pool
);

Parameters

pool
The memory pool created by mpool_create.

Return Values

TRUE
Success.
FALSE
Failure. The function sets errno to one of these values:
EINVAL The pool is not a valid MPOOL.

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.

Requirements

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