23#ifndef TABLE_SETUP_INSTRUMENTS_H
24#define TABLE_SETUP_INSTRUMENTS_H
107 bool read_all)
override;
110 unsigned char *new_buf,
Field **fields)
override;
Definition: pfs_engine_table.h:299
An abstract PERFORMANCE_SCHEMA table.
Definition: pfs_engine_table.h:69
Definition: table_setup_instruments.h:76
bool match_view(uint view)
Definition: table_setup_instruments.cc:81
PFS_index_setup_instruments()
Definition: table_setup_instruments.h:78
~PFS_index_setup_instruments() override=default
bool match(PFS_instr_class *klass)
Definition: table_setup_instruments.cc:88
PFS_key_event_name m_key
Definition: table_setup_instruments.h:86
Definition: table_helper.h:1431
Class to hold information regarding a table to be created on behalf of a plugin.
Definition: plugin_table.h:39
Table PERFORMANCE_SCHEMA.SETUP_INSTRUMENTS.
Definition: table_setup_instruments.h:90
row_setup_instruments m_row
Current row.
Definition: table_setup_instruments.h:126
pos_setup_instruments m_next_pos
Next position.
Definition: table_setup_instruments.h:130
~table_setup_instruments() override=default
int read_row_values(TABLE *table, unsigned char *buf, Field **fields, bool read_all) override
Read the current row values.
Definition: table_setup_instruments.cc:362
int rnd_next() override
Fetch the next row in this cursor.
Definition: table_setup_instruments.cc:113
static THR_LOCK m_table_lock
Table share lock.
Definition: table_setup_instruments.h:121
table_setup_instruments()
Definition: table_setup_instruments.cc:105
int index_next() override
Find key in index, read record.
Definition: table_setup_instruments.cc:269
static Plugin_table m_table_def
Table definition.
Definition: table_setup_instruments.h:123
int make_row(PFS_instr_class *klass, bool update_enabled)
Definition: table_setup_instruments.cc:353
int rnd_pos(const void *pos) override
Fetch a row by position.
Definition: table_setup_instruments.cc:186
static PFS_engine_table * create(PFS_engine_table_share *)
Definition: table_setup_instruments.cc:96
int index_init(uint idx, bool sorted) override
Definition: table_setup_instruments.cc:258
static PFS_engine_table_share m_share
Table share.
Definition: table_setup_instruments.h:93
pos_setup_instruments m_pos
Current position.
Definition: table_setup_instruments.h:128
void reset_position(void) override
Reset the cursor position to the beginning of the table.
Definition: table_setup_instruments.cc:108
PFS_index_setup_instruments * m_opened_index
Definition: table_setup_instruments.h:132
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_setup_instruments.cc:435
static ha_rows get_row_count()
Definition: table_setup_instruments.cc:100
char * pos
Definition: do_ctype.cc:76
This file includes constants used by all storage engines.
my_off_t ha_rows
Definition: my_base.h:1139
Definition: buf0block_hint.cc:29
Performance schema tables (declarations).
static void update_enabled(MYSQL_THD, SYS_VAR *, void *, const void *value)
Updater function for the status variable ..._enabled.
Definition: rewriter_plugin.cc:127
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
Information for all instrumentation.
Definition: pfs_instr_class.h:204
Name space, internal views used within table setup_instruments.
Definition: table_helper.h:503
static const uint FIRST_INSTRUMENT
Definition: table_helper.h:504
static const uint LAST_INSTRUMENT
Definition: table_helper.h:529
Definition: thr_lock.h:138
Position of a cursor on PERFORMANCE_SCHEMA.SETUP_INSTRUMENTS.
Definition: table_setup_instruments.h:60
bool has_more_view(void)
Definition: table_setup_instruments.h:68
void next_view(void)
Definition: table_setup_instruments.h:70
pos_setup_instruments()
Definition: table_setup_instruments.h:61
void reset(void)
Definition: table_setup_instruments.h:63
A row of PERFORMANCE_SCHEMA.SETUP_INSTRUMENTS.
Definition: table_setup_instruments.h:49
PFS_instr_class * m_instr_class
Columns NAME, ENABLED, TIMED.
Definition: table_setup_instruments.h:51
bool m_update_timed
True if column TIMED can be updated.
Definition: table_setup_instruments.h:55
bool m_update_enabled
True if column ENABLED can be updated.
Definition: table_setup_instruments.h:53
Helpers to implement a performance schema table.
unsigned int uint
Definition: uca-dump.cc:29