pool_get_stats(3)

NAME
pool_get_stats - get statistics from the pool

SYNOPSIS
#include <pool.h>

void pool_get_stats (const pool, struct pool_stats *stats, size_t n);

DESCRIPTION

Return various statistics collected for the pool. This function fills in the stats argument which should point to a structure of type struct pool_stats. n should be set to the size of this structure.

struct pool_stats currently contains the following fields:

nr_subpools: The number of subpools (including the current pool).

struct_size: The memory overhead used by the pool allocator itself to store structures. This includes subpools.

AUTHOR
Richard Jones <rich@annexia.org>

LICENSE
GNU LGPL (see http://www.gnu.org/)

VERSION
c2lib-1.2.14