diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-12-12 19:50:20 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-12-12 19:50:20 +0000 |
commit | 3617535f341e5ea4df04b94e10f78c1f9ee5e814 (patch) | |
tree | 0aa335361422b1ee63e74dea325ca1279e960bbd /src/libutil/mem_pool.h | |
parent | eba3b1535d33c93949d0d53234ffb373772de1a5 (diff) | |
download | rspamd-3617535f341e5ea4df04b94e10f78c1f9ee5e814.tar.gz rspamd-3617535f341e5ea4df04b94e10f78c1f9ee5e814.zip |
[Minor] Track memory usage in mempool
Diffstat (limited to 'src/libutil/mem_pool.h')
-rw-r--r-- | src/libutil/mem_pool.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libutil/mem_pool.h b/src/libutil/mem_pool.h index 5a663e35f..a32aa0597 100644 --- a/src/libutil/mem_pool.h +++ b/src/libutil/mem_pool.h @@ -127,6 +127,8 @@ typedef struct memory_pool_s { GPtrArray *trash_stack; GHashTable *variables; /**< private memory pool variables */ gsize elt_len; /**< size of an element */ + gsize used_memory; + gsize wasted_memory; struct rspamd_mempool_entry_point *entry; struct rspamd_mempool_tag tag; /**< memory pool tag */ } rspamd_mempool_t; |