23#ifndef TABLE_ALL_INSTR_H
24#define TABLE_ALL_INSTR_H
93 int rnd_pos(
const void *pos)
override;
Definition: pfs_engine_table.h:299
Definition: pfs_engine_table.h:267
An abstract PERFORMANCE_SCHEMA table.
Definition: pfs_engine_table.h:69
Definition: table_all_instr.h:62
~PFS_index_all_instr() override=default
virtual bool match(PFS_file *)
Definition: table_all_instr.h:72
virtual bool match(PFS_mutex *)
Definition: table_all_instr.h:69
PFS_index_all_instr(PFS_engine_key *key_1)
Definition: table_all_instr.h:64
virtual bool match(PFS_socket *)
Definition: table_all_instr.h:73
virtual bool match(PFS_cond *)
Definition: table_all_instr.h:71
virtual bool match_view(uint view)
Definition: table_all_instr.h:75
virtual bool match(PFS_rwlock *)
Definition: table_all_instr.h:70
Abstract table, a union of all instrumentations instances.
Definition: table_all_instr.h:87
virtual int make_file_row(PFS_file *pfs)=0
Build a row in the file instance view.
void reset_position(void) override
Reset the cursor position to the beginning of the table.
Definition: table_all_instr.cc:47
virtual int make_mutex_row(PFS_mutex *pfs)=0
Build a row in the mutex instance view.
int rnd_pos(const void *pos) override
Fetch a row by position.
Definition: table_all_instr.cc:109
pos_all_instr m_next_pos
Next position.
Definition: table_all_instr.h:133
static ha_rows get_row_count()
Definition: table_all_instr.cc:36
virtual int make_socket_row(PFS_socket *pfs)=0
Build a row in the socket instance view.
int index_next(void) override
Find key in index, read record.
Definition: table_all_instr.cc:154
table_all_instr(const PFS_engine_table_share *share)
Definition: table_all_instr.cc:44
virtual int make_cond_row(PFS_cond *pfs)=0
Build a row in the condition instance view.
pos_all_instr m_pos
Current position.
Definition: table_all_instr.h:131
virtual int make_rwlock_row(PFS_rwlock *pfs)=0
Build a row in the rwlock instance view.
int rnd_next() override
Fetch the next row in this cursor.
Definition: table_all_instr.cc:52
int index_init(uint, bool) override
Definition: table_all_instr.h:91
~table_all_instr() override=default
PFS_index_all_instr * m_opened_index
Definition: table_all_instr.h:135
my_off_t ha_rows
Definition: my_base.h:1139
Header for compiler-dependent features.
Performance schema tables (declarations).
Performance schema instruments (declarations).
Performance schema instruments metadata (declarations).
static const LEX_CSTRING pfs
Definition: sql_show_processlist.cc:65
Instrumented condition implementation.
Definition: pfs_instr.h:159
Position of a double cursor, for iterations using 2 nested loops.
Definition: pfs_engine_table.h:593
uint m_index_1
Outer index.
Definition: pfs_engine_table.h:595
uint m_index_2
Current index within index_1.
Definition: pfs_engine_table.h:597
A PERFORMANCE_SCHEMA table share.
Definition: pfs_engine_table.h:357
Instrumented File and FILE implementation.
Definition: pfs_instr.h:176
Name space, internal views used within table setup_instruments.
Definition: table_helper.h:488
static const uint LAST_VIEW
Definition: table_helper.h:500
static const uint FIRST_VIEW
Definition: table_helper.h:491
Instrumented mutex implementation.
Definition: pfs_instr.h:100
Instrumented rwlock implementation.
Definition: pfs_instr.h:126
Instrumented socket implementation.
Definition: pfs_instr.h:286
Position of a cursor on table_all_instr.
Definition: table_all_instr.h:46
bool has_more_view(void)
Definition: table_all_instr.h:54
pos_all_instr()
Definition: table_all_instr.h:47
void next_view(void)
Definition: table_all_instr.h:56
void reset(void)
Definition: table_all_instr.h:49
Helpers to implement a performance schema table.
unsigned int uint
Definition: uca-dump.cc:29