![]() |
MySQL 8.0.43
Source Code Documentation
|
Events waits data structures (declarations). More...
#include <sys/types.h>#include <atomic>#include "my_inttypes.h"#include "storage/perfschema/pfs_column_types.h"#include "storage/perfschema/pfs_events.h"#include "storage/perfschema/pfs_global.h"#include "storage/perfschema/pfs_lock.h"Go to the source code of this file.
Classes | |
| struct | PFS_events_waits |
| A wait event record. More... | |
Macros | |
| #define | STATE_FLAG_TIMED (1 << 0) |
| TIMED bit in the state flags bitfield. More... | |
| #define | STATE_FLAG_THREAD (1 << 1) |
| THREAD bit in the state flags bitfield. More... | |
| #define | STATE_FLAG_EVENT (1 << 2) |
| EVENT bit in the state flags bitfield. More... | |
| #define | STATE_FLAG_DIGEST (1 << 3) |
| DIGEST bit in the state flags bitfield. More... | |
| #define | STATE_FLAG_CPU (1 << 4) |
| CPU bit in the state flags bitfield. More... | |
| #define | STATE_FLAG_BASE (1 << 5) |
| BASE bit in the state flags bitfield. More... | |
Enumerations | |
| enum | events_waits_class { NO_WAIT_CLASS = 0 , WAIT_CLASS_MUTEX , WAIT_CLASS_RWLOCK , WAIT_CLASS_COND , WAIT_CLASS_TABLE , WAIT_CLASS_FILE , WAIT_CLASS_SOCKET , WAIT_CLASS_IDLE , WAIT_CLASS_METADATA } |
| Class of a wait event. More... | |
Functions | |
| void | insert_events_waits_history (PFS_thread *thread, PFS_events_waits *wait) |
| Insert a wait record in table EVENTS_WAITS_HISTORY. More... | |
| void | insert_events_waits_history_long (PFS_events_waits *wait) |
| Insert a wait record in table EVENTS_WAITS_HISTORY_LONG. More... | |
| int | init_events_waits_history_long (uint events_waits_history_long_sizing) |
| Initialize table EVENTS_WAITS_HISTORY_LONG. More... | |
| void | cleanup_events_waits_history_long () |
| Cleanup table EVENTS_WAITS_HISTORY_LONG. More... | |
| void | reset_events_waits_current () |
| Reset table EVENTS_WAITS_CURRENT data. More... | |
| void | reset_events_waits_history () |
| Reset table EVENTS_WAITS_HISTORY data. More... | |
| void | reset_events_waits_history_long () |
| Reset table EVENTS_WAITS_HISTORY_LONG data. More... | |
| void | reset_events_waits_by_thread () |
| Reset table EVENTS_WAITS_SUMMARY_BY_THREAD_BY_EVENT_NAME data. More... | |
| void | reset_events_waits_by_account () |
| Reset table EVENTS_WAITS_SUMMARY_BY_ACCOUNT_BY_EVENT_NAME data. More... | |
| void | reset_events_waits_by_user () |
| Reset table EVENTS_WAITS_SUMMARY_BY_USER_BY_EVENT_NAME data. More... | |
| void | reset_events_waits_by_host () |
| Reset table EVENTS_WAITS_SUMMARY_BY_HOST_BY_EVENT_NAME data. More... | |
| void | reset_events_waits_global () |
| void | aggregate_account_waits (PFS_account *account) |
| void | aggregate_user_waits (PFS_user *user) |
| void | aggregate_host_waits (PFS_host *host) |
| void | reset_table_waits_by_table () |
| void | reset_table_io_waits_by_table () |
| void | reset_table_lock_waits_by_table () |
| void | reset_table_waits_by_table_handle () |
| void | reset_table_io_waits_by_table_handle () |
| void | reset_table_lock_waits_by_table_handle () |
Variables | |
| bool | flag_events_waits_current |
| Consumer flag for table EVENTS_WAITS_CURRENT. More... | |
| bool | flag_events_waits_history |
| Consumer flag for table EVENTS_WAITS_HISTORY. More... | |
| bool | flag_events_waits_history_long |
| Consumer flag for table EVENTS_WAITS_HISTORY_LONG. More... | |
| bool | flag_global_instrumentation |
| Consumer flag for the global instrumentation. More... | |
| bool | flag_thread_instrumentation |
| Consumer flag for the per thread instrumentation. More... | |
| bool | events_waits_history_long_full |
| True if EVENTS_WAITS_HISTORY_LONG circular buffer is full. More... | |
| PFS_cacheline_atomic_uint32 | events_waits_history_long_index |
| Index in EVENTS_WAITS_HISTORY_LONG circular buffer. More... | |
| PFS_events_waits * | events_waits_history_long_array |
| EVENTS_WAITS_HISTORY_LONG circular buffer. More... | |
| ulong | events_waits_history_long_size |
Events waits data structures (declarations).
| #define STATE_FLAG_BASE (1 << 5) |
BASE bit in the state flags bitfield.
| #define STATE_FLAG_CPU (1 << 4) |
CPU bit in the state flags bitfield.
| #define STATE_FLAG_DIGEST (1 << 3) |
DIGEST bit in the state flags bitfield.
| #define STATE_FLAG_EVENT (1 << 2) |
EVENT bit in the state flags bitfield.
| #define STATE_FLAG_THREAD (1 << 1) |
THREAD bit in the state flags bitfield.
| #define STATE_FLAG_TIMED (1 << 0) |
TIMED bit in the state flags bitfield.
| enum events_waits_class |
| void aggregate_account_waits | ( | PFS_account * | account | ) |
| void aggregate_host_waits | ( | PFS_host * | host | ) |
| void aggregate_user_waits | ( | PFS_user * | user | ) |
| void cleanup_events_waits_history_long | ( | ) |
Cleanup table EVENTS_WAITS_HISTORY_LONG.
| int init_events_waits_history_long | ( | uint | events_waits_history_long_sizing | ) |
Initialize table EVENTS_WAITS_HISTORY_LONG.
| events_waits_history_long_sizing | table sizing |
| void insert_events_waits_history | ( | PFS_thread * | thread, |
| PFS_events_waits * | wait | ||
| ) |
Insert a wait record in table EVENTS_WAITS_HISTORY.
| thread | thread that executed the wait |
| wait | record to insert |
| void insert_events_waits_history_long | ( | PFS_events_waits * | wait | ) |
Insert a wait record in table EVENTS_WAITS_HISTORY_LONG.
| wait | record to insert |
| void reset_events_waits_by_account | ( | ) |
Reset table EVENTS_WAITS_SUMMARY_BY_ACCOUNT_BY_EVENT_NAME data.
| void reset_events_waits_by_host | ( | ) |
Reset table EVENTS_WAITS_SUMMARY_BY_HOST_BY_EVENT_NAME data.
| void reset_events_waits_by_thread | ( | ) |
Reset table EVENTS_WAITS_SUMMARY_BY_THREAD_BY_EVENT_NAME data.
| void reset_events_waits_by_user | ( | ) |
Reset table EVENTS_WAITS_SUMMARY_BY_USER_BY_EVENT_NAME data.
| void reset_events_waits_current | ( | ) |
Reset table EVENTS_WAITS_CURRENT data.
| void reset_events_waits_global | ( | ) |
| void reset_events_waits_history | ( | ) |
Reset table EVENTS_WAITS_HISTORY data.
| void reset_events_waits_history_long | ( | ) |
Reset table EVENTS_WAITS_HISTORY_LONG data.
| void reset_table_io_waits_by_table | ( | ) |
| void reset_table_io_waits_by_table_handle | ( | ) |
| void reset_table_lock_waits_by_table | ( | ) |
| void reset_table_lock_waits_by_table_handle | ( | ) |
| void reset_table_waits_by_table | ( | ) |
| void reset_table_waits_by_table_handle | ( | ) |
|
extern |
EVENTS_WAITS_HISTORY_LONG circular buffer.
|
extern |
True if EVENTS_WAITS_HISTORY_LONG circular buffer is full.
|
extern |
Index in EVENTS_WAITS_HISTORY_LONG circular buffer.
|
extern |
|
extern |
Consumer flag for table EVENTS_WAITS_CURRENT.
|
extern |
Consumer flag for table EVENTS_WAITS_HISTORY.
|
extern |
Consumer flag for table EVENTS_WAITS_HISTORY_LONG.
|
extern |
Consumer flag for the global instrumentation.
|
extern |
Consumer flag for the per thread instrumentation.