![]() |
MySQL 9.4.0
Source Code Documentation
|
Events waits data structures (implementation). More...
#include "storage/perfschema/pfs_events_waits.h"#include <atomic>#include "m_string.h"#include "my_compiler.h"#include "my_sys.h"#include "storage/perfschema/pfs_account.h"#include "storage/perfschema/pfs_buffer_container.h"#include "storage/perfschema/pfs_builtin_memory.h"#include "storage/perfschema/pfs_global.h"#include "storage/perfschema/pfs_host.h"#include "storage/perfschema/pfs_instr.h"#include "storage/perfschema/pfs_instr_class.h"#include "storage/perfschema/pfs_user.h"Variables | |
| PFS_ALIGNED ulong | events_waits_history_long_size = 0 |
| PFS_ALIGNED bool | flag_events_waits_current = false |
| Consumer flag for table EVENTS_WAITS_CURRENT. More... | |
| PFS_ALIGNED bool | flag_events_waits_history = false |
| Consumer flag for table EVENTS_WAITS_HISTORY. More... | |
| PFS_ALIGNED bool | flag_events_waits_history_long = false |
| Consumer flag for table EVENTS_WAITS_HISTORY_LONG. More... | |
| PFS_ALIGNED bool | flag_global_instrumentation = false |
| Consumer flag for the global instrumentation. More... | |
| PFS_ALIGNED bool | flag_thread_instrumentation = false |
| Consumer flag for the per thread instrumentation. More... | |
| PFS_ALIGNED bool | events_waits_history_long_full = false |
| True if EVENTS_WAITS_HISTORY_LONG circular buffer is full. More... | |
| PFS_ALIGNED PFS_cacheline_atomic_uint32 | events_waits_history_long_index |
| Index in EVENTS_WAITS_HISTORY_LONG circular buffer. More... | |
| PFS_ALIGNED PFS_events_waits * | events_waits_history_long_array = nullptr |
| EVENTS_WAITS_HISTORY_LONG circular buffer. More... | |
Events waits data structures (implementation).
| void cleanup_events_waits_history_long | ( | ) |
Cleanup table EVENTS_WAITS_HISTORY_LONG.
|
inlinestatic |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
| 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_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 | ( | ) |
| PFS_ALIGNED PFS_events_waits* events_waits_history_long_array = nullptr |
EVENTS_WAITS_HISTORY_LONG circular buffer.
| PFS_ALIGNED bool events_waits_history_long_full = false |
True if EVENTS_WAITS_HISTORY_LONG circular buffer is full.
| PFS_ALIGNED PFS_cacheline_atomic_uint32 events_waits_history_long_index |
Index in EVENTS_WAITS_HISTORY_LONG circular buffer.
| PFS_ALIGNED ulong events_waits_history_long_size = 0 |
| PFS_ALIGNED bool flag_events_waits_current = false |
Consumer flag for table EVENTS_WAITS_CURRENT.
| PFS_ALIGNED bool flag_events_waits_history = false |
Consumer flag for table EVENTS_WAITS_HISTORY.
| PFS_ALIGNED bool flag_events_waits_history_long = false |
Consumer flag for table EVENTS_WAITS_HISTORY_LONG.
| PFS_ALIGNED bool flag_global_instrumentation = false |
Consumer flag for the global instrumentation.
| PFS_ALIGNED bool flag_thread_instrumentation = false |
Consumer flag for the per thread instrumentation.