hamsterdb Embedded Database 1.1.13
|
#include <hamsterdb_stats.h>
This structure is a READ-ONLY data structure returned through invoking ham_env_get_parameters or ham_get_parameters with a HAM_PARAM_GET_STATISTICS ham_parameter_t entry.
Also note that the data is exported to aid very advanced uses of hamsterdb only and is to be accessed in an exclusively read-only fashion.
The structure includes a function pointer which will optionally be set by hamsterdb upon invoking ham_env_get_parameters or ham_get_parameters and this function should be invoked by the caller to release all memory allocated by hamsterdb in the ham_statistics_t structure, and this action MUST be performed before the related env and/or db handles are either closed or deleted, whichever of these comes first in your application run-time flow.
The easiest way to invoke this ham_clean_statistics_datarec function (when it is set) is to use the provided ham_clean_statistics_datarec() function.
Definition at line 454 of file hamsterdb_stats.h.
A reference to a hamsterdb-specified optional data cleanup function.
Definition at line 502 of file hamsterdb_stats.h.
Definition at line 508 of file hamsterdb_stats.h.
The ham_db_t specific statistics
Definition at line 466 of file hamsterdb_stats.h.
[input] Whether the ham_db_t specific statistics should be gathered [output] will be reset when the db specific statistics have been gathered
Definition at line 482 of file hamsterdb_stats.h.
[input] Whether the freelist statistics should be gathered (this is a relatively costly operation) [output] will be reset when the freelist statistics have been gathered
Definition at line 476 of file hamsterdb_stats.h.
[input] Whether the ham_env_t statistics (a.k.a. 'global statistics') should be gathered [output] will be reset when the global statistics have been gathered
Definition at line 489 of file hamsterdb_stats.h.
Number of freelist pages (and statistics records) known to hamsterdb
Definition at line 457 of file hamsterdb_stats.h.
The freelist_stats_maxalloc freelist statistics records
Definition at line 463 of file hamsterdb_stats.h.
Number of freelist statistics records allocated in this structure
Definition at line 460 of file hamsterdb_stats.h.
The ham_env_t statistics, a.k.a. 'global statistics'
Definition at line 469 of file hamsterdb_stats.h.