MySQL 8.0.32
Source Code Documentation
LatchCounter::Count Struct Reference

The counts we collect for a mutex. More...

#include <sync0types.h>

Public Member Functions

 Count () 1
 Constructor. More...
 
void reset () 1
 Rest the values to zero. More...
 

Public Attributes

uint32_t m_spins
 Number of spins trying to acquire the latch. More...
 
uint32_t m_waits
 Number of waits trying to acquire the latch. More...
 
uint32_t m_calls
 Number of times it was called. More...
 
bool m_enabled
 true if enabled More...
 

Detailed Description

The counts we collect for a mutex.

Constructor & Destructor Documentation

◆ Count()

LatchCounter::Count::Count ( )
inline

Constructor.

Member Function Documentation

◆ reset()

void LatchCounter::Count::reset ( void  )
inline

Rest the values to zero.

Member Data Documentation

◆ m_calls

uint32_t LatchCounter::Count::m_calls

Number of times it was called.

◆ m_enabled

bool LatchCounter::Count::m_enabled

true if enabled

◆ m_spins

uint32_t LatchCounter::Count::m_spins

Number of spins trying to acquire the latch.

◆ m_waits

uint32_t LatchCounter::Count::m_waits

Number of waits trying to acquire the latch.


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