CUBRID Engine
latest
|
#include <monitor_collect.hpp>
Classes | |
class | autotimer |
Public Member Functions | |
counter_timer_statistic (void) | |
void | time_and_increment (const time_rep &d, const amount_rep &a=1) |
void | time_and_increment (const amount_rep &a=1) |
void | reset_timer () |
std::size_t | get_statistics_count (void) const |
void | fetch (statistic_value *destination, fetch_mode mode=FETCH_GLOBAL) const |
amount_rep | get_count (fetch_mode mode=FETCH_GLOBAL) const |
time_rep | get_time (fetch_mode mode=FETCH_GLOBAL) const |
time_rep | get_average_time (fetch_mode mode=FETCH_GLOBAL) const |
void | register_to_monitor (monitor &mon, const char *basename) const |
Private Attributes | |
timer | m_timer |
A | m_amount_statistic |
T | m_time_statistic |
Definition at line 132 of file monitor_collect.hpp.
|
inline |
Definition at line 315 of file monitor_collect.hpp.
|
inline |
Definition at line 354 of file monitor_collect.hpp.
References assert, cubmonitor::counter_timer_statistic< A, T >::get_statistics_count(), cubmonitor::counter_timer_statistic< A, T >::m_amount_statistic, and cubmonitor::counter_timer_statistic< A, T >::m_time_statistic.
Referenced by cubmonitor::counter_timer_statistic< A, T >::register_to_monitor().
|
inline |
Definition at line 383 of file monitor_collect.hpp.
References cubmonitor::counter_timer_statistic< A, T >::get_count(), and cubmonitor::counter_timer_statistic< A, T >::get_time().
Referenced by cubmonitor::counter_timer_statistic< A, T >::register_to_monitor().
|
inline |
Definition at line 369 of file monitor_collect.hpp.
References cubmonitor::counter_timer_statistic< A, T >::m_amount_statistic.
Referenced by lockfree::hashmap< Key, T >::dump_stat(), and cubmonitor::counter_timer_statistic< A, T >::get_average_time().
|
inline |
Definition at line 347 of file monitor_collect.hpp.
References cubmonitor::counter_timer_statistic< A, T >::m_amount_statistic, and cubmonitor::counter_timer_statistic< A, T >::m_time_statistic.
Referenced by cubmonitor::counter_timer_statistic< A, T >::fetch(), and cubmonitor::counter_timer_statistic< A, T >::register_to_monitor().
|
inline |
Definition at line 376 of file monitor_collect.hpp.
References cubmonitor::counter_timer_statistic< A, T >::m_time_statistic.
Referenced by lockfree::hashmap< Key, T >::dump_stat(), and cubmonitor::counter_timer_statistic< A, T >::get_average_time().
void cubmonitor::counter_timer_statistic< A, T >::register_to_monitor | ( | monitor & | mon, |
const char * | basename | ||
) | const |
Definition at line 390 of file monitor_collect.hpp.
References assert, cubmonitor::build_name_vector(), cubmonitor::counter_timer_statistic< A, T >::fetch(), fetch_func, cubmonitor::counter_timer_statistic< A, T >::get_average_time(), cubmonitor::counter_timer_statistic< A, T >::get_statistics_count(), mode, cubmonitor::monitor::register_statistics(), and cubmonitor::statistic_value_cast().
|
inline |
Definition at line 340 of file monitor_collect.hpp.
References cubmonitor::counter_timer_statistic< A, T >::m_timer, and cubmonitor::timer::reset().
Referenced by cubmonitor::counter_timer_statistic< A, T >::autotimer::autotimer().
|
inline |
Definition at line 325 of file monitor_collect.hpp.
References cubmonitor::counter_timer_statistic< A, T >::m_amount_statistic, and cubmonitor::counter_timer_statistic< A, T >::m_time_statistic.
Referenced by cubmonitor::counter_timer_statistic< A, T >::time_and_increment(), and cubmonitor::counter_timer_statistic< A, T >::autotimer::~autotimer().
|
inline |
Definition at line 333 of file monitor_collect.hpp.
References cubmonitor::counter_timer_statistic< A, T >::m_timer, cubmonitor::timer::time(), and cubmonitor::counter_timer_statistic< A, T >::time_and_increment().
|
private |
Definition at line 169 of file monitor_collect.hpp.
Referenced by cubmonitor::counter_timer_statistic< A, T >::fetch(), cubmonitor::counter_timer_statistic< A, T >::get_count(), cubmonitor::counter_timer_statistic< A, T >::get_statistics_count(), and cubmonitor::counter_timer_statistic< A, T >::time_and_increment().
|
private |
Definition at line 170 of file monitor_collect.hpp.
Referenced by cubmonitor::counter_timer_statistic< A, T >::fetch(), cubmonitor::counter_timer_statistic< A, T >::get_statistics_count(), cubmonitor::counter_timer_statistic< A, T >::get_time(), and cubmonitor::counter_timer_statistic< A, T >::time_and_increment().
|
private |
Definition at line 168 of file monitor_collect.hpp.
Referenced by cubmonitor::counter_timer_statistic< A, T >::reset_timer(), and cubmonitor::counter_timer_statistic< A, T >::time_and_increment().