Default latch counter.  
 More...
#include <sync0types.h>
◆ Counters
◆ Mutex
◆ LatchCounter() [1/2]
  
  | 
        
          | LatchCounter::LatchCounter | ( |  | ) |  |  | inline | 
 
 
◆ ~LatchCounter()
  
  | 
        
          | LatchCounter::~LatchCounter | ( |  | ) |  |  | inline | 
 
 
◆ LatchCounter() [2/2]
◆ disable()
  
  | 
        
          | void LatchCounter::disable | ( |  | ) |  |  | inline | 
 
 
◆ enable()
  
  | 
        
          | void LatchCounter::enable | ( |  | ) |  |  | inline | 
 
 
◆ is_enabled()
  
  | 
        
          | bool LatchCounter::is_enabled | ( |  | ) | const |  | inline | 
 
- Returns
- if monitoring is active 
 
 
◆ iterate()
  
  | 
        
          | void LatchCounter::iterate | ( | Callback && | callback | ) | const |  | inline | 
 
Iterate over the counters. 
 
 
◆ operator=()
◆ reset()
  
  | 
        
          | void LatchCounter::reset | ( | void |  | ) |  |  | inline | 
 
Reset all counters to zero. 
It is not protected by any mutex and we don't care about atomicity. Unless it is a demonstrated problem. The information collected is not required for the correct functioning of the server. 
 
 
◆ single_deregister()
  
  | 
        
          | void LatchCounter::single_deregister | ( | Count * | count | ) |  |  | inline | 
 
Deregister a single instance counter. 
- Parameters
- 
  
    | [in] | count | The count instance to deregister |  
 
 
 
◆ single_register()
  
  | 
        
          | void LatchCounter::single_register | ( | Count * | count | ) |  |  | inline | 
 
Register a single instance counter. 
 
 
◆ sum_deregister()
  
  | 
        
          | void LatchCounter::sum_deregister | ( | Count * | count | ) | const |  | inline | 
 
Deregister the count. 
We don't do anything 
- Parameters
- 
  
    | [in] | count | The count instance to deregister |  
 
 
 
◆ sum_register()
  
  | 
        
          | Count * LatchCounter::sum_register | ( |  | ) |  |  | inline | 
 
- Returns
- the aggregate counter 
 
 
◆ m_active
  
  | 
        
          | bool LatchCounter::m_active |  | private | 
 
if true then we collect the data 
 
 
◆ m_counters
Counters for the latches. 
 
 
◆ m_mutex
  
  | 
        
          | Mutex LatchCounter::m_mutex |  | mutableprivate | 
 
Mutex protecting m_counters. 
 
 
The documentation for this class was generated from the following file: