CUBRID Engine  latest
cubmonitor::counter_timer_statistic< A, T > Class Template Reference

#include <monitor_collect.hpp>

Collaboration diagram for cubmonitor::counter_timer_statistic< A, T >:
Collaboration graph

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
 
m_amount_statistic
 
m_time_statistic
 

Detailed Description

template<class A = amount_accumulator_statistic, class T = time_accumulator_statistic>
class cubmonitor::counter_timer_statistic< A, T >

Definition at line 132 of file monitor_collect.hpp.

Constructor & Destructor Documentation

template<class A , class T >
cubmonitor::counter_timer_statistic< A, T >::counter_timer_statistic ( void  )
inline

Definition at line 315 of file monitor_collect.hpp.

Member Function Documentation

template<class A , class T >
time_rep cubmonitor::counter_timer_statistic< A, T >::get_average_time ( fetch_mode  mode = FETCH_GLOBAL) const
inline
template<class A , class T >
amount_rep cubmonitor::counter_timer_statistic< A, T >::get_count ( fetch_mode  mode = FETCH_GLOBAL) const
inline
template<class A , class T >
std::size_t cubmonitor::counter_timer_statistic< A, T >::get_statistics_count ( void  ) const
inline
template<class A , class T >
time_rep cubmonitor::counter_timer_statistic< A, T >::get_time ( fetch_mode  mode = FETCH_GLOBAL) const
inline
template<class A , class T >
void cubmonitor::counter_timer_statistic< A, T >::reset_timer ( )
inline

Member Data Documentation

template<class A = amount_accumulator_statistic, class T = time_accumulator_statistic>
timer cubmonitor::counter_timer_statistic< A, T >::m_timer
private

The documentation for this class was generated from the following file: