diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2009-04-21 04:08:01 +0400 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2009-04-21 04:08:01 +0400 |
commit | da9546194391e7d14ffe9b0c78f84892b012ff28 (patch) | |
tree | 573d8247533354e338ca4783dc4bdf28b078e531 /src/mem_pool.h | |
parent | d0dbd1aa3a95c5a1f354458033f6af2b8f01a4a5 (diff) | |
download | rspamd-da9546194391e7d14ffe9b0c78f84892b012ff28.tar.gz rspamd-da9546194391e7d14ffe9b0c78f84892b012ff28.zip |
* Add counter for oversized chunks: this parameter can improve performance, for example
if we have too many oversized chunks it is good decision to increase
chunk size.
Diffstat (limited to 'src/mem_pool.h')
-rw-r--r-- | src/mem_pool.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mem_pool.h b/src/mem_pool.h index 0754afd7b..6875a1850 100644 --- a/src/mem_pool.h +++ b/src/mem_pool.h @@ -74,6 +74,7 @@ typedef struct memory_pool_stat_s { 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 chunks_freed; /**< chunks freed */ + memory_pool_ssize_t oversized_chunks; /**< oversized chunks */ } memory_pool_stat_t; /** |