24#ifndef TABLE_ALL_INSTR_H
25#define TABLE_ALL_INSTR_H
94 int rnd_pos(
const void *pos)
override;
Definition: pfs_engine_table.h:301
Definition: pfs_engine_table.h:268
An abstract PERFORMANCE_SCHEMA table.
Definition: pfs_engine_table.h:70
Definition: table_all_instr.h:63
~PFS_index_all_instr() override=default
virtual bool match(PFS_file *)
Definition: table_all_instr.h:73
virtual bool match(PFS_mutex *)
Definition: table_all_instr.h:70
PFS_index_all_instr(PFS_engine_key *key_1)
Definition: table_all_instr.h:65
virtual bool match(PFS_socket *)
Definition: table_all_instr.h:74
virtual bool match(PFS_cond *)
Definition: table_all_instr.h:72
virtual bool match_view(uint view)
Definition: table_all_instr.h:76
virtual bool match(PFS_rwlock *)
Definition: table_all_instr.h:71
Abstract table, a union of all instrumentations instances.
Definition: table_all_instr.h:88
virtual int make_file_row(PFS_file *pfs)=0
Build a row in the file instance view.
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:110
pos_all_instr m_next_pos
Next position.
Definition: table_all_instr.h:134
static ha_rows get_row_count()
Definition: table_all_instr.cc:37
virtual int make_socket_row(PFS_socket *pfs)=0
Build a row in the socket instance view.
int index_next() override
Find key in index, read record.
Definition: table_all_instr.cc:155
table_all_instr(const PFS_engine_table_share *share)
Definition: table_all_instr.cc:45
virtual int make_cond_row(PFS_cond *pfs)=0
Build a row in the condition instance view.
void reset_position() override
Reset the cursor position to the beginning of the table.
Definition: table_all_instr.cc:48
pos_all_instr m_pos
Current position.
Definition: table_all_instr.h:132
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:53
int index_init(uint, bool) override
Definition: table_all_instr.h:92
~table_all_instr() override=default
PFS_index_all_instr * m_opened_index
Definition: table_all_instr.h:136
my_off_t ha_rows
Definition: my_base.h:1140
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:66
Instrumented condition implementation.
Definition: pfs_instr.h:160
Position of a double cursor, for iterations using 2 nested loops.
Definition: pfs_engine_table.h:602
uint m_index_1
Outer index.
Definition: pfs_engine_table.h:604
uint m_index_2
Current index within index_1.
Definition: pfs_engine_table.h:606
A PERFORMANCE_SCHEMA table share.
Definition: pfs_engine_table.h:359
Instrumented File and FILE implementation.
Definition: pfs_instr.h:177
Name space, internal views used within table setup_instruments.
Definition: table_helper.h:489
static const uint LAST_VIEW
Definition: table_helper.h:501
static const uint FIRST_VIEW
Definition: table_helper.h:492
Instrumented mutex implementation.
Definition: pfs_instr.h:101
Instrumented rwlock implementation.
Definition: pfs_instr.h:127
Instrumented socket implementation.
Definition: pfs_instr.h:287
Position of a cursor on table_all_instr.
Definition: table_all_instr.h:47
bool has_more_view()
Definition: table_all_instr.h:55
void next_view()
Definition: table_all_instr.h:57
pos_all_instr()
Definition: table_all_instr.h:48
void reset()
Definition: table_all_instr.h:50
Helpers to implement a performance schema table.
unsigned int uint
Definition: uca9-dump.cc:75