aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-05-13 14:04:31 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-05-13 14:04:31 +0100
commite1219df89354f7366a66b34d13b9b89f02377958 (patch)
tree6c2b71d533d56abbb5d3113f4bbc2b76f59c432b /src
parentae6e8aa9ed5f92e8fc656e901eecee94c9b708b6 (diff)
downloadrspamd-e1219df89354f7366a66b34d13b9b89f02377958.tar.gz
rspamd-e1219df89354f7366a66b34d13b9b89f02377958.zip
Output some statistics about maps.
Diffstat (limited to 'src')
-rw-r--r--src/libutil/map.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/libutil/map.c b/src/libutil/map.c
index c2de77ead..3fe7495b3 100644
--- a/src/libutil/map.c
+++ b/src/libutil/map.c
@@ -829,6 +829,9 @@ rspamd_hosts_fin (rspamd_mempool_t * pool, struct map_cb_data *data)
if (data->prev_data) {
g_hash_table_destroy (data->prev_data);
}
+ if (data->cur_data) {
+ msg_info ("read hash of %z elements", g_hash_table_size (data->cur_data));
+ }
}
gchar *
@@ -854,6 +857,9 @@ rspamd_kv_list_fin (rspamd_mempool_t * pool, struct map_cb_data *data)
if (data->prev_data) {
g_hash_table_destroy (data->prev_data);
}
+ if (data->cur_data) {
+ msg_info ("read hash of %z elements", g_hash_table_size (data->cur_data));
+ }
}
gchar *
@@ -878,4 +884,7 @@ rspamd_radix_fin (rspamd_mempool_t * pool, struct map_cb_data *data)
if (data->prev_data) {
radix_destroy_compressed (data->prev_data);
}
+ if (data->cur_data) {
+ msg_info ("read radix trie of %z elements", radix_get_size (data->cur_data));
+ }
}