aboutsummaryrefslogtreecommitdiffstats
path: root/src/mem_pool.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2009-03-26 18:29:45 +0300
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2009-03-26 18:29:45 +0300
commit251d13cc56cdf625bafac9db008d85abe0fa893c (patch)
tree5b77b7055bf9e7da9a09d762e84cfaabed58131f /src/mem_pool.h
parentbd1213bba483c40213c7b24c7ded1cbf0c8cd5b1 (diff)
downloadrspamd-251d13cc56cdf625bafac9db008d85abe0fa893c.tar.gz
rspamd-251d13cc56cdf625bafac9db008d85abe0fa893c.zip
* Add statictics for all allocated pools
Diffstat (limited to 'src/mem_pool.h')
-rw-r--r--src/mem_pool.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mem_pool.h b/src/mem_pool.h
index d332a2c11..0754afd7b 100644
--- a/src/mem_pool.h
+++ b/src/mem_pool.h
@@ -68,9 +68,11 @@ typedef struct memory_pool_s {
* Statistics structure
*/
typedef struct memory_pool_stat_s {
- memory_pool_ssize_t bytes_allocated; /**< bytes that are allocated with pool allocator */
+ memory_pool_ssize_t pools_allocated; /**< total number of allocated pools */
+ memory_pool_ssize_t pools_freed; /**< number of freed pools */
+ memory_pool_ssize_t bytes_allocated; /**< bytes that are allocated with pool allocator */
memory_pool_ssize_t chunks_allocated; /**< number of chunks that are allocated */
- memory_pool_ssize_t shared_chunks_allocated; /**< shared chunks allocated */
+ memory_pool_ssize_t shared_chunks_allocated; /**< shared chunks allocated */
memory_pool_ssize_t chunks_freed; /**< chunks freed */
} memory_pool_stat_t;