#include <kvstore.h> kv_error_t kv_get_stats(kv_store_t *store, kv_stats_t **stats, kv_int_t clear)
Returns a statistics structure, which you can then examine using kv_get_node_metrics(), kv_get_operation_metrics(), or kv_stats_string(). You release the resources allocated for the statistics structure using kv_release_stats().
The store parameter is the handle to the store for which you want to examine statistical information.
The stats parameter references memory into which a pointer to the allocated statistics structure is copied.