MySQL 8.0.39
Source Code Documentation
|
Events statements 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_digest.h"
#include "storage/perfschema/pfs_events.h"
#include "storage/perfschema/pfs_name.h"
Go to the source code of this file.
Classes | |
struct | PFS_events_statements |
A statement record. More... | |
Functions | |
void | insert_events_statements_history (PFS_thread *thread, PFS_events_statements *statement) |
Insert a statement record in table EVENTS_STATEMENTS_HISTORY. More... | |
void | insert_events_statements_history_long (PFS_events_statements *statement) |
Insert a statement record in table EVENTS_STATEMENTS_HISTORY_LONG. More... | |
int | init_events_statements_history_long (size_t events_statements_history_long_sizing) |
Initialize table EVENTS_STATEMENTS_HISTORY_LONG. More... | |
void | cleanup_events_statements_history_long () |
Cleanup table EVENTS_STATEMENTS_HISTORY_LONG. More... | |
void | reset_events_statements_current () |
Reset table EVENTS_STATEMENTS_CURRENT data. More... | |
void | reset_events_statements_history () |
Reset table EVENTS_STATEMENTS_HISTORY data. More... | |
void | reset_events_statements_history_long () |
Reset table EVENTS_STATEMENTS_HISTORY_LONG data. More... | |
void | reset_events_statements_by_thread () |
Reset table EVENTS_STATEMENTS_SUMMARY_BY_THREAD_BY_EVENT_NAME data. More... | |
void | reset_events_statements_by_account () |
Reset table EVENTS_STATEMENTS_SUMMARY_BY_ACCOUNT_BY_EVENT_NAME data. More... | |
void | reset_events_statements_by_user () |
Reset table EVENTS_STATEMENTS_SUMMARY_BY_USER_BY_EVENT_NAME data. More... | |
void | reset_events_statements_by_host () |
Reset table EVENTS_STATEMENTS_SUMMARY_BY_HOST_BY_EVENT_NAME data. More... | |
void | reset_events_statements_global () |
Reset table EVENTS_STATEMENTS_GLOBAL_BY_EVENT_NAME data. More... | |
void | aggregate_account_statements (PFS_account *account) |
void | aggregate_user_statements (PFS_user *user) |
void | aggregate_host_statements (PFS_host *host) |
Variables | |
ulong | nested_statement_lost |
bool | flag_events_statements_cpu |
Consumer flag for CPU_TIME columns. More... | |
bool | flag_events_statements_current |
Consumer flag for table EVENTS_STATEMENTS_CURRENT. More... | |
bool | flag_events_statements_history |
Consumer flag for table EVENTS_STATEMENTS_HISTORY. More... | |
bool | flag_events_statements_history_long |
Consumer flag for table EVENTS_STATEMENTS_HISTORY_LONG. More... | |
bool | events_statements_history_long_full |
True if EVENTS_STATEMENTS_HISTORY_LONG circular buffer is full. More... | |
PFS_cacheline_atomic_uint32 | events_statements_history_long_index |
Index in EVENTS_STATEMENTS_HISTORY_LONG circular buffer. More... | |
PFS_events_statements * | events_statements_history_long_array |
EVENTS_STATEMENTS_HISTORY_LONG circular buffer. More... | |
size_t | events_statements_history_long_size |
Events statements data structures (declarations).
void aggregate_account_statements | ( | PFS_account * | account | ) |
void aggregate_host_statements | ( | PFS_host * | host | ) |
void aggregate_user_statements | ( | PFS_user * | user | ) |
void cleanup_events_statements_history_long | ( | ) |
Cleanup table EVENTS_STATEMENTS_HISTORY_LONG.
int init_events_statements_history_long | ( | size_t | events_statements_history_long_sizing | ) |
Initialize table EVENTS_STATEMENTS_HISTORY_LONG.
events_statements_history_long_sizing | table sizing |
void insert_events_statements_history | ( | PFS_thread * | thread, |
PFS_events_statements * | statement | ||
) |
Insert a statement record in table EVENTS_STATEMENTS_HISTORY.
thread | thread that executed the wait |
statement | record to insert |
void insert_events_statements_history_long | ( | PFS_events_statements * | statement | ) |
Insert a statement record in table EVENTS_STATEMENTS_HISTORY_LONG.
statement | record to insert |
void reset_events_statements_by_account | ( | ) |
Reset table EVENTS_STATEMENTS_SUMMARY_BY_ACCOUNT_BY_EVENT_NAME data.
void reset_events_statements_by_host | ( | ) |
Reset table EVENTS_STATEMENTS_SUMMARY_BY_HOST_BY_EVENT_NAME data.
void reset_events_statements_by_thread | ( | ) |
Reset table EVENTS_STATEMENTS_SUMMARY_BY_THREAD_BY_EVENT_NAME data.
void reset_events_statements_by_user | ( | ) |
Reset table EVENTS_STATEMENTS_SUMMARY_BY_USER_BY_EVENT_NAME data.
void reset_events_statements_current | ( | ) |
Reset table EVENTS_STATEMENTS_CURRENT data.
void reset_events_statements_global | ( | ) |
Reset table EVENTS_STATEMENTS_GLOBAL_BY_EVENT_NAME data.
void reset_events_statements_history | ( | ) |
Reset table EVENTS_STATEMENTS_HISTORY data.
void reset_events_statements_history_long | ( | ) |
Reset table EVENTS_STATEMENTS_HISTORY_LONG data.
|
extern |
EVENTS_STATEMENTS_HISTORY_LONG circular buffer.
|
extern |
True if EVENTS_STATEMENTS_HISTORY_LONG circular buffer is full.
|
extern |
Index in EVENTS_STATEMENTS_HISTORY_LONG circular buffer.
|
extern |
|
extern |
Consumer flag for CPU_TIME columns.
|
extern |
Consumer flag for table EVENTS_STATEMENTS_CURRENT.
|
extern |
Consumer flag for table EVENTS_STATEMENTS_HISTORY.
|
extern |
Consumer flag for table EVENTS_STATEMENTS_HISTORY_LONG.
|
extern |