CUBRID Engine  latest
cubperf::generic_stat_counter< IsAtomic > Class Template Reference

#include <perf_def.hpp>

Collaboration diagram for cubperf::generic_stat_counter< IsAtomic >:
Collaboration graph

Public Member Functions

 generic_stat_counter (const char *name=NULL)
 
void increment (stat_value incr=1)
 
stat_value get_count (void)
 
const char * get_name (void)
 

Private Attributes

generic_value< IsAtomic > m_stat_value
 
const char * m_stat_name
 

Detailed Description

template<bool IsAtomic>
class cubperf::generic_stat_counter< IsAtomic >

Definition at line 79 of file perf_def.hpp.

Constructor & Destructor Documentation

template<bool IsAtomic>
cubperf::generic_stat_counter< IsAtomic >::generic_stat_counter ( const char *  name = NULL)

Definition at line 483 of file perf.hpp.

Member Function Documentation

template<bool IsAtomic>
stat_value cubperf::generic_stat_counter< IsAtomic >::get_count ( void  )

Definition at line 499 of file perf.hpp.

References cubperf::generic_stat_counter< IsAtomic >::m_stat_value.

Referenced by cubthread::waiter::get_stats().

Here is the caller graph for this function:

template<bool IsAtomic>
const char * cubperf::generic_stat_counter< IsAtomic >::get_name ( void  )

Definition at line 506 of file perf.hpp.

References cubperf::generic_stat_counter< IsAtomic >::m_stat_name.

template<bool IsAtomic>
void cubperf::generic_stat_counter< IsAtomic >::increment ( stat_value  incr = 1)
inline

Definition at line 492 of file perf.hpp.

References cubperf::generic_stat_counter< IsAtomic >::m_stat_value.

Referenced by cubthread::waiter::wakeup().

Here is the caller graph for this function:

Member Data Documentation

template<bool IsAtomic>
const char* cubperf::generic_stat_counter< IsAtomic >::m_stat_name
private

Definition at line 90 of file perf_def.hpp.

Referenced by cubperf::generic_stat_counter< IsAtomic >::get_name().

template<bool IsAtomic>
generic_value<IsAtomic> cubperf::generic_stat_counter< IsAtomic >::m_stat_value
private

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