MySQL 8.4.2
Source Code Documentation
|
Callback for collecting mutex statistics. More...
Classes | |
struct | GetCount |
Collect the individual latch counts. More... | |
struct | OrderByWaits |
Order by m_waits, in descending order. More... | |
struct | Value |
For tracking the mutex metrics. More... | |
Public Types | |
typedef std::vector< Value, ut::allocator< Value > > | Values |
Public Member Functions | |
ShowStatus ()=default | |
Constructor. More... | |
bool | operator() (latch_meta_t &latch_meta) 1 |
Callback for collecting the stats. More... | |
bool | to_string (THD *thd, stat_print_fn *stat_print) 1 |
Implements the SHOW MUTEX STATUS command, for mutexes. More... | |
Public Attributes | |
Values | m_values |
For collecting the active mutex stats. More... | |
Callback for collecting mutex statistics.
typedef std::vector<Value, ut::allocator<Value> > ShowStatus::Values |
|
default |
Constructor.
|
inline |
Callback for collecting the stats.
[in] | latch_meta | Latch meta data |
bool ShowStatus::to_string | ( | THD * | thd, |
stat_print_fn * | stat_print | ||
) |
Implements the SHOW MUTEX STATUS command, for mutexes.
The table structure is like so: Engine | Mutex Name | Status We store the metrics in the "Status" column as:
spins=N,waits=N,calls=N"
The user has to parse the data unfortunately
[in,out] | thd | the MySQL query thread of the caller |
[in,out] | stat_print | function for printing statistics |
Values ShowStatus::m_values |
For collecting the active mutex stats.