radix_destroy_compressed (data->prev_data);
}
if (data->cur_data) {
- msg_info_pool ("read radix trie of %z elements", radix_get_size
- (data->cur_data));
+ msg_info_pool ("read radix trie of %z elements: %s",
+ radix_get_size (data->cur_data), radix_get_info (data->cur_data));
}
}
return NULL;
}
+
+const gchar *
+radix_get_info (radix_compressed_t *tree)
+{
+ if (tree == NULL) {
+ return NULL;
+ }
+
+ return btrie_stats (tree->tree);
+}
*/
gsize radix_get_size (radix_compressed_t *tree);
+/**
+ * Return string that describes this radix tree (memory, nodes, compression etc)
+ * @param tree
+ * @return constant string
+ */
+const gchar * radix_get_info (radix_compressed_t *tree);
+
/**
* Returns memory pool associated with the radix tree
*/