#include <stdlib.h>
#include <stdio.h>
#include "odb.h"
#include "op_types.h"
Go to the source code of this file.
Data Structures | |
struct | odb_hash_stat_t |
hold various statistics data for a db file More... | |
Functions | |
odb_hash_stat_t * | odb_hash_stat (odb_t const *odb) |
void | odb_hash_display_stat (odb_hash_stat_t const *stat) |
void | odb_hash_free_stat (odb_hash_stat_t *stat) |
Statistics routines for libdb
Definition in file db_stat.c.
void odb_hash_display_stat | ( | odb_hash_stat_t const * | stat | ) |
Definition at line 74 of file db_stat.c.
References odb_hash_stat_t::average_list_length, odb_hash_stat_t::hash_table_size, odb_hash_stat_t::max_list_length, odb_hash_stat_t::node_nr, odb_hash_stat_t::total_count, and odb_hash_stat_t::used_node_nr.
Referenced by sanity_check().
void odb_hash_free_stat | ( | odb_hash_stat_t * | stat | ) |
Definition at line 85 of file db_stat.c.
Referenced by sanity_check().
odb_hash_stat_t* odb_hash_stat | ( | odb_t const * | odb | ) |
Definition at line 28 of file db_stat.c.
References odb_hash_stat_t::average_list_length, BUCKET_FACTOR, odb_descr_t::current_size, odb_t::data, odb_data::descr, odb_data::hash_base, odb_hash_stat_t::hash_table_size, odb_hash_stat_t::max_list_length, odb_node_t::next, odb_data::node_base, odb_hash_stat_t::node_nr, odb_descr_t::size, odb_hash_stat_t::total_count, odb_hash_stat_t::used_node_nr, and odb_node_t::value.
Referenced by sanity_check().