kv_get_stats()
#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().
Parameters
-
store
The store parameter is the handle to the store for which you want to examine statistical information.
-
stats
The stats parameter references memory into which a pointer to the allocated statistics structure is copied.
-
clear
The clear parameter resets all counters within the statistics structure to zero. Setting this value to
1
creates a new reporting interval for which minimum, maximum, average, and total values are computed.
See Also