127 constexpr
auto enum_to_base(E e)->typename std::underlying_type<E>::type {
128 return static_cast<typename std::underlying_type<E>::type
>(e);
205 using sm_stats_t = std::array<long, enum_to_base(sm_stat_id::stat_max)>;
264 #endif // __SMSTATS_H const char * get_stat_expl(sm_stat_id s)
Definition: smstats.cpp:187
u_long page_size
compile-time constant. Settable in
Definition: smstats.h:226
u_long max_btree_entry_size
Largest permissible size in bytes of an index entry (key,value pair)
Definition: smstats.h:242
u_long exts_on_page
Number of extent links on an extent page.
Definition: smstats.h:245
u_long max_small_rec
Data space available on a page of a large record.
Definition: smstats.h:232
Configuration Information.
Definition: smstats.h:221
sm_stat_id
Definition: smstats.h:131
std::array< long, enum_to_base(sm_stat_id::stat_max)> sm_stats_t
Definition: smstats.h:205
void print_sm_stats(sm_stats_t &stats, std::ostream &out)
std::ostream & operator<<(std::ostream &os, const ConfigFile &cf)
Definition: confparser.cpp:83
const char * get_stat_name(sm_stat_id s)
Definition: smstats.cpp:44
u_long lg_rec_page_space
Definition: smstats.h:235
bool logging
True if logging is on.
Definition: smstats.h:257
constexpr auto enum_to_base(E e) -> typename std::underlying_type< E >::type
Definition: smstats.h:127
u_long buffer_pool_size
Size in KB of buffer pool.
Definition: smstats.h:238
u_long pages_per_ext
Number of pages per extent (compile-time constant)
Definition: smstats.h:250