CUBRID Engine
latest
|
#include <perf.hpp>
Private Member Functions | |
template<bool IsAtomic> | |
void | generic_increment (generic_statset< IsAtomic > &statsetr, stat_id id, stat_value incr) const |
template<bool IsAtomic> | |
void | generic_time (generic_statset< IsAtomic > &statsetr, stat_id id, duration d) const |
template<bool IsAtomic> | |
void | generic_time (generic_statset< IsAtomic > &statsetr, stat_id id) const |
template<bool IsAtomic> | |
void | generic_time_and_increment (generic_statset< IsAtomic > &statsetr, stat_id id, stat_value incr, duration d) const |
template<bool IsAtomic> | |
void | generic_time_and_increment (generic_statset< IsAtomic > &statsetr, stat_id id, stat_value incr) const |
template<typename Duration > | |
stat_value | convert_timeval (stat_value nanosecs) const |
template<bool IsAtomic, typename Duration > | |
void | generic_get_stat_values_with_converted_timers (const generic_statset< IsAtomic > &statsetr, stat_value *output_stats) const |
template<bool IsAtomic, typename Duration > | |
void | generic_add_stat_values_with_converted_timers (const generic_statset< IsAtomic > &statsetr, stat_value *output_stats) const |
Private Attributes | |
std::size_t | m_stat_count |
std::size_t | m_value_count |
stat_definition * | m_stat_defs |
std::string * | m_value_names |
|
delete |
cubperf::statset_definition::statset_definition | ( | std::initializer_list< stat_definition > | defs | ) |
Definition at line 84 of file perf.cpp.
References assert, cubperf::stat_definition::get_value_count(), cubperf::stat_definition::m_names, cubperf::stat_definition::m_offset, m_stat_count, m_stat_defs, m_value_count, and m_value_names.
cubperf::statset_definition::~statset_definition | ( | void | ) |
Definition at line 124 of file perf.cpp.
References m_stat_defs, and m_value_names.
void cubperf::statset_definition::add_stat_values | ( | const statset & | statsetr, |
stat_value * | output_stats | ||
) | const |
Definition at line 182 of file perf.cpp.
References get_value_count(), and cubperf::generic_statset< IsAtomic >::m_values.
void cubperf::statset_definition::add_stat_values | ( | const atomic_statset & | statsetr, |
stat_value * | output_stats | ||
) | const |
Definition at line 191 of file perf.cpp.
References get_value_count(), and cubperf::generic_statset< IsAtomic >::m_values.
void cubperf::statset_definition::add_stat_values_with_converted_timers | ( | const statset & | statsetr, |
stat_value * | output_stats | ||
) | const |
Definition at line 446 of file perf.hpp.
Referenced by cubthread::wp_worker_statset_accumulate().
void cubperf::statset_definition::add_stat_values_with_converted_timers | ( | const atomic_statset & | statsetr, |
stat_value * | output_stats | ||
) | const |
|
private |
atomic_statset * cubperf::statset_definition::create_atomic_statset | ( | void | ) | const |
Definition at line 137 of file perf.cpp.
References get_value_count().
statset * cubperf::statset_definition::create_statset | ( | void | ) | const |
Definition at line 131 of file perf.cpp.
References get_value_count().
Referenced by cubthread::daemon::create_statset(), and cubthread::wp_worker_statset_create().
|
private |
Definition at line 418 of file perf.hpp.
References assert, cubperf::stat_definition::COUNTER, cubperf::stat_definition::COUNTER_AND_TIMER, cubperf::stat_definition::m_type, cubperf::generic_statset< IsAtomic >::m_values, and cubperf::stat_definition::TIMER.
|
private |
Definition at line 375 of file perf.hpp.
References assert, cubperf::stat_definition::COUNTER, cubperf::stat_definition::COUNTER_AND_TIMER, cubperf::stat_definition::m_type, cubperf::generic_statset< IsAtomic >::m_values, and cubperf::stat_definition::TIMER.
|
inlineprivate |
Definition at line 251 of file perf.hpp.
References assert, cubperf::stat_definition::m_type, and cubperf::generic_statset< IsAtomic >::m_values.
|
inlineprivate |
Definition at line 274 of file perf.hpp.
References assert, cubperf::stat_definition::m_type, and cubperf::generic_statset< IsAtomic >::m_values.
|
inlineprivate |
Definition at line 285 of file perf.hpp.
References cubperf::generic_statset< IsAtomic >::m_timept.
|
inlineprivate |
Definition at line 318 of file perf.hpp.
References assert, cubperf::stat_definition::m_type, and cubperf::generic_statset< IsAtomic >::m_values.
|
inlineprivate |
Definition at line 332 of file perf.hpp.
References cubperf::generic_statset< IsAtomic >::m_timept.
std::size_t cubperf::statset_definition::get_stat_count | ( | ) | const |
Definition at line 143 of file perf.cpp.
References m_stat_count.
void cubperf::statset_definition::get_stat_values | ( | const statset & | statsetr, |
stat_value * | output_stats | ||
) | const |
Definition at line 167 of file perf.cpp.
References get_values_memsize(), and cubperf::generic_statset< IsAtomic >::m_values.
void cubperf::statset_definition::get_stat_values | ( | const atomic_statset & | statsetr, |
stat_value * | output_stats | ||
) | const |
Definition at line 173 of file perf.cpp.
References get_value_count(), and cubperf::generic_statset< IsAtomic >::m_values.
void cubperf::statset_definition::get_stat_values_with_converted_timers | ( | const statset & | statsetr, |
stat_value * | output_stats | ||
) | const |
Definition at line 403 of file perf.hpp.
Referenced by cubthread::waiter::get_stats(), cubthread::daemon::get_stats(), and cubthread::looper::get_stats().
void cubperf::statset_definition::get_stat_values_with_converted_timers | ( | const atomic_statset & | statsetr, |
stat_value * | output_stats | ||
) | const |
std::size_t cubperf::statset_definition::get_value_count | ( | void | ) | const |
Definition at line 149 of file perf.cpp.
References m_value_count.
Referenced by add_stat_values(), create_atomic_statset(), create_statset(), cubthread::daemon::get_stat_name(), get_stat_values(), cubthread::daemon::get_stats(), cubthread::waiter::get_stats_value_count(), cubthread::daemon::get_stats_value_count(), cubthread::looper::get_stats_value_count(), get_values_memsize(), cubthread::wp_er_log_stats(), and cubthread::wp_worker_statset_get_count().
const char * cubperf::statset_definition::get_value_name | ( | std::size_t | value_index | ) | const |
Definition at line 155 of file perf.cpp.
References m_value_names.
Referenced by cubthread::waiter::get_stat_name(), cubthread::daemon::get_stat_name(), cubthread::looper::get_stat_name(), cubthread::wp_er_log_stats(), and cubthread::wp_worker_statset_get_name().
std::size_t cubperf::statset_definition::get_values_memsize | ( | void | ) | const |
Definition at line 161 of file perf.cpp.
References get_value_count().
Referenced by get_stat_values().
|
inline |
Definition at line 261 of file perf.hpp.
Referenced by cubthread::waiter::goto_sleep(), cubthread::looper::reset(), cubthread::waiter::wait_for(), cubthread::waiter::wait_until(), and cubthread::waiter::wakeup().
|
inline |
Definition at line 293 of file perf.hpp.
Referenced by cubthread::daemon::register_stat_pause().
|
inline |
|
inline |
|
inline |
Definition at line 340 of file perf.hpp.
Referenced by cubthread::looper::put_to_sleep(), cubthread::daemon::register_stat_execute(), cubthread::waiter::run(), and cubthread::wp_worker_statset_time_and_increment().
|
inline |
|
inline |
|
inline |
|
private |
Definition at line 229 of file perf.hpp.
Referenced by get_stat_count(), and statset_definition().
|
private |
Definition at line 231 of file perf.hpp.
Referenced by statset_definition(), and ~statset_definition().
|
private |
Definition at line 230 of file perf.hpp.
Referenced by get_value_count(), and statset_definition().
|
private |
Definition at line 232 of file perf.hpp.
Referenced by get_value_name(), statset_definition(), and ~statset_definition().