pool_get_stats - get statistics from the pool |
#include <pool.h> void pool_get_stats (const pool, struct pool_stats *stats, size_t n); |
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. |
Richard Jones <rich@annexia.org> |
GNU LGPL (see http://www.gnu.org/) |
c2lib-1.2.13 |