Zero  0.1.0
Classes | Typedefs | Enumerations | Functions
smstats.h File Reference
#include "w_defines.h"
#include <array>

Go to the source code of this file.

Classes

struct  sm_config_info_t
 Configuration Information. More...
 

Typedefs

using sm_stats_t = std::array< long, enum_to_base(sm_stat_id::stat_max)>
 

Enumerations

enum  sm_stat_id : size_t {
  sm_stat_id::rwlock_r_wait, sm_stat_id::rwlock_w_wait, sm_stat_id::needs_latch_condl, sm_stat_id::needs_latch_uncondl,
  sm_stat_id::latch_condl_nowait, sm_stat_id::latch_uncondl_nowait, sm_stat_id::cleaned_pages, sm_stat_id::cleaner_time_cpu,
  sm_stat_id::cleaner_time_io, sm_stat_id::cleaner_time_copy, sm_stat_id::bf_eviction_attempts, sm_stat_id::bf_evict,
  sm_stat_id::bf_evict_duration, sm_stat_id::bf_hit_cnt, sm_stat_id::vol_reads, sm_stat_id::vol_writes,
  sm_stat_id::vol_blks_written, sm_stat_id::log_dup_sync_cnt, sm_stat_id::log_fsync_cnt, sm_stat_id::log_chkpt_cnt,
  sm_stat_id::log_fetches, sm_stat_id::log_inserts, sm_stat_id::log_buffer_hit, sm_stat_id::log_bytes_generated,
  sm_stat_id::log_bytes_written, sm_stat_id::log_short_flush, sm_stat_id::log_long_flush, sm_stat_id::bt_find_cnt,
  sm_stat_id::bt_insert_cnt, sm_stat_id::bt_remove_cnt, sm_stat_id::bt_traverse_cnt, sm_stat_id::bt_partial_traverse_cnt,
  sm_stat_id::bt_grows, sm_stat_id::bt_shrinks, sm_stat_id::bt_links, sm_stat_id::bf_fix_cnt,
  sm_stat_id::page_alloc_cnt, sm_stat_id::page_dealloc_cnt, sm_stat_id::xct_log_flush, sm_stat_id::begin_xct_cnt,
  sm_stat_id::commit_xct_cnt, sm_stat_id::abort_xct_cnt, sm_stat_id::rollback_savept_cnt, sm_stat_id::internal_rollback_cnt,
  sm_stat_id::anchors, sm_stat_id::compensate_in_log, sm_stat_id::compensate_records, sm_stat_id::compensate_skipped,
  sm_stat_id::bf_fix_nonroot_count, sm_stat_id::bf_fix_nonroot_miss_count, sm_stat_id::bf_fix_adjusted_parent, sm_stat_id::restart_log_analysis_time,
  sm_stat_id::restart_redo_time, sm_stat_id::restart_dirty_pages, sm_stat_id::restore_log_volume, sm_stat_id::la_log_slow,
  sm_stat_id::la_activations, sm_stat_id::la_read_volume, sm_stat_id::la_read_count, sm_stat_id::la_open_count,
  sm_stat_id::la_read_time, sm_stat_id::la_block_writes, sm_stat_id::la_img_compressed_bytes, sm_stat_id::log_img_format_bytes,
  sm_stat_id::la_skipped_bytes, sm_stat_id::la_img_trimmed, sm_stat_id::la_wasted_read, sm_stat_id::stat_max
}
 

Functions

template<typename E >
constexpr auto enum_to_base (E e) -> typename std::underlying_type< E >::type
 
void print_sm_stats (sm_stats_t &stats, std::ostream &out)
 
const char * get_stat_name (sm_stat_id s)
 
const char * get_stat_expl (sm_stat_id s)
 

Typedef Documentation

§ sm_stats_t

using sm_stats_t = std::array<long, enum_to_base(sm_stat_id::stat_max)>

Enumeration Type Documentation

§ sm_stat_id

enum sm_stat_id : size_t
strong
Enumerator
rwlock_r_wait 
rwlock_w_wait 
needs_latch_condl 
needs_latch_uncondl 
latch_condl_nowait 
latch_uncondl_nowait 
cleaned_pages 
cleaner_time_cpu 
cleaner_time_io 
cleaner_time_copy 
bf_eviction_attempts 
bf_evict 
bf_evict_duration 
bf_hit_cnt 
vol_reads 
vol_writes 
vol_blks_written 
log_dup_sync_cnt 
log_fsync_cnt 
log_chkpt_cnt 
log_fetches 
log_inserts 
log_buffer_hit 
log_bytes_generated 
log_bytes_written 
log_short_flush 
log_long_flush 
bt_find_cnt 
bt_insert_cnt 
bt_remove_cnt 
bt_traverse_cnt 
bt_partial_traverse_cnt 
bt_grows 
bt_shrinks 
bt_links 
bf_fix_cnt 
page_alloc_cnt 
page_dealloc_cnt 
xct_log_flush 
begin_xct_cnt 
commit_xct_cnt 
abort_xct_cnt 
rollback_savept_cnt 
internal_rollback_cnt 
anchors 
compensate_in_log 
compensate_records 
compensate_skipped 
bf_fix_nonroot_count 
bf_fix_nonroot_miss_count 
bf_fix_adjusted_parent 
restart_log_analysis_time 
restart_redo_time 
restart_dirty_pages 
restore_log_volume 
la_log_slow 
la_activations 
la_read_volume 
la_read_count 
la_open_count 
la_read_time 
la_block_writes 
la_img_compressed_bytes 
log_img_format_bytes 
la_skipped_bytes 
la_img_trimmed 
la_wasted_read 
stat_max 

Function Documentation

§ enum_to_base()

template<typename E >
constexpr auto enum_to_base ( e) -> typename std::underlying_type<E>::type

§ get_stat_expl()

const char* get_stat_expl ( sm_stat_id  s)

§ get_stat_name()

const char* get_stat_name ( sm_stat_id  s)

§ print_sm_stats()

void print_sm_stats ( sm_stats_t stats,
std::ostream &  out 
)