23#ifndef TABLE_THREADS_H
24#define TABLE_THREADS_H
200 bool read_all)
override;
203 unsigned char *new_buf,
Field **fields)
override;
An abstract PERFORMANCE_SCHEMA table.
Definition: pfs_engine_table.h:69
Definition: table_threads.h:151
~PFS_index_threads_by_host() override=default
PFS_key_host m_key
Definition: table_threads.h:161
PFS_index_threads_by_host()
Definition: table_threads.h:153
bool match(PFS_thread *pfs) override
Definition: table_threads.cc:156
Definition: table_threads.h:123
bool match(PFS_thread *pfs) override
Definition: table_threads.cc:130
PFS_key_thread_name m_key
Definition: table_threads.h:132
~PFS_index_threads_by_name() override=default
PFS_index_threads_by_name()
Definition: table_threads.h:125
Definition: table_threads.h:110
~PFS_index_threads_by_processlist_id() override=default
PFS_index_threads_by_processlist_id()
Definition: table_threads.h:112
bool match(PFS_thread *pfs) override
Definition: table_threads.cc:120
PFS_key_processlist_id m_key
Definition: table_threads.h:120
Definition: table_threads.h:177
bool match(PFS_thread *pfs) override
Definition: table_threads.cc:176
PFS_key_group_name m_key
Definition: table_threads.h:187
~PFS_index_threads_by_resource_group() override=default
PFS_index_threads_by_resource_group()
Definition: table_threads.h:179
Definition: table_threads.h:97
PFS_key_thread_id m_key
Definition: table_threads.h:107
bool match(PFS_thread *pfs) override
Definition: table_threads.cc:110
~PFS_index_threads_by_thread_id() override=default
PFS_index_threads_by_thread_id()
Definition: table_threads.h:99
Definition: table_threads.h:164
bool match(PFS_thread *pfs) override
Definition: table_threads.cc:166
PFS_index_threads_by_thread_os_id()
Definition: table_threads.h:166
~PFS_index_threads_by_thread_os_id() override=default
PFS_key_thread_os_id m_key
Definition: table_threads.h:174
Definition: table_threads.h:135
bool match(PFS_thread *pfs) override
Definition: table_threads.cc:140
PFS_index_threads_by_user_host()
Definition: table_threads.h:137
~PFS_index_threads_by_user_host() override=default
PFS_key_host m_key_2
Definition: table_threads.h:148
PFS_key_user m_key_1
Definition: table_threads.h:147
Definition: cursor_by_thread.h:41
Definition: table_helper.h:1520
Definition: table_helper.h:1458
Definition: table_helper.h:1280
Definition: table_helper.h:1250
Definition: table_helper.h:1421
Definition: table_helper.h:1299
Definition: table_helper.h:1446
Class to hold information regarding a table to be created on behalf of a plugin.
Definition: plugin_table.h:39
Cursor CURSOR_BY_THREAD.
Definition: cursor_by_thread.h:54
Table PERFORMANCE_SCHEMA.THREADS.
Definition: table_threads.h:191
int read_row_values(TABLE *table, unsigned char *buf, Field **fields, bool read_all) override
Read the current row values.
Definition: table_threads.cc:338
row_threads m_row
Current row.
Definition: table_threads.h:221
int index_init(uint idx, bool sorted) override
Definition: table_threads.cc:186
static PFS_engine_table_share m_share
Table share.
Definition: table_threads.h:194
int make_row(PFS_thread *pfs) override
Definition: table_threads.cc:220
static PFS_engine_table * create(PFS_engine_table_share *)
Table builder.
Definition: table_threads.cc:104
table_threads()
Definition: table_threads.cc:108
int update_row_values(TABLE *table, const unsigned char *old_buf, unsigned char *new_buf, Field **fields) override
Update the current row values.
Definition: table_threads.cc:486
static THR_LOCK m_table_lock
Table share lock.
Definition: table_threads.h:216
static Plugin_table m_table_def
Table definition.
Definition: table_threads.h:218
~table_threads() override=default
Cursor CURSOR_BY_THREAD (declarations).
Some integer typedefs for easier portability.
unsigned long long int ulonglong
Definition: my_inttypes.h:55
unsigned long long my_thread_os_id_t
Definition: my_thread_os_id.h:47
#define NAME_LEN
Definition: mysql_com.h:66
Definition: buf0block_hint.cc:29
Data types for columns used in the performance schema tables (declarations)
static const LEX_CSTRING pfs
Definition: sql_show_processlist.cc:65
A PERFORMANCE_SCHEMA table share.
Definition: pfs_engine_table.h:357
Definition: pfs_name.h:243
Definition: pfs_name.h:115
Definition: table_helper.h:1073
Instrumented thread implementation.
Definition: pfs_instr.h:372
Definition: pfs_name.h:222
Definition: thr_lock.h:138
A row of PERFORMANCE_SCHEMA.THREADS.
Definition: table_threads.h:48
uint m_groupname_length
Length in bytes of m_groupname.
Definition: table_threads.h:90
const char * m_name
Column NAME.
Definition: table_threads.h:54
ulonglong m_processlist_id
Column PROCESSLIST_ID.
Definition: table_threads.h:52
char m_groupname[NAME_LEN]
Column RESOURCE_GROUP.
Definition: table_threads.h:88
const char * m_processlist_info_ptr
Column PROCESSLIST_INFO.
Definition: table_threads.h:72
PFS_session_all_memory_stat_row m_session_all_memory_row
CURRENT_CONTROLLED_MEMORY, ...
Definition: table_threads.h:94
PFS_thread * m_psi
INSTRUMENTED and HISTORY (write).
Definition: table_threads.h:80
uint m_processlist_state_length
Length in bytes of m_processlist_state_ptr.
Definition: table_threads.h:70
bool m_history
Column HISTORY (read).
Definition: table_threads.h:78
ulonglong m_parent_thread_internal_id
Column PARENT_THREAD_ID.
Definition: table_threads.h:82
my_thread_os_id_t m_thread_os_id
Column THREAD_OS_ID.
Definition: table_threads.h:86
PFS_schema_name m_db_name
Column PROCESSLIST_DB.
Definition: table_threads.h:62
uint m_processlist_info_length
Length in bytes of m_processlist_info_ptr.
Definition: table_threads.h:74
bool m_secondary
Column EXECUTION_ENGINE.
Definition: table_threads.h:92
ulonglong m_thread_internal_id
Column THREAD_ID.
Definition: table_threads.h:50
bool m_enabled
Column INSTRUMENTED (read).
Definition: table_threads.h:76
time_t m_start_time
Column PROCESSLIST_TIME.
Definition: table_threads.h:66
int m_command
Column PROCESSLIST_COMMAND.
Definition: table_threads.h:64
enum_vio_type m_connection_type
Column CONNECTION_TYPE.
Definition: table_threads.h:84
uint m_name_length
Length in bytes of m_name.
Definition: table_threads.h:56
const char * m_processlist_state_ptr
Column PROCESSLIST_STATE.
Definition: table_threads.h:68
PFS_user_name m_user_name
Column PROCESSLIST_USER.
Definition: table_threads.h:58
PFS_host_name m_host_name
Column PROCESSLIST_HOST.
Definition: table_threads.h:60
Include file for Sun RPC to compile out of the box.
unsigned int uint
Definition: uca-dump.cc:29
enum_vio_type
Definition: violite.h:78