24#ifndef TABLE_SETUP_METERS_H
25#define TABLE_SETUP_METERS_H
141 int rnd_pos(
const void *pos)
override;
143 int index_init(uint idx,
bool sorted)
override;
148 bool read_all)
override;
151 unsigned char *new_buf,
Field **fields)
override;
Definition: pfs_engine_table.h:300
Definition: pfs_engine_table.h:268
An abstract PERFORMANCE_SCHEMA table.
Definition: pfs_engine_table.h:70
Definition: table_setup_meters.h:74
bool match(PFS_meter_class *pfs) override
Definition: table_setup_meters.cc:77
PFS_index_setup_meters_by_name()
Definition: table_setup_meters.h:76
~PFS_index_setup_meters_by_name() override=default
PFS_key_meter_name m_key
Definition: table_setup_meters.h:84
Definition: table_setup_meters.h:64
virtual bool match(PFS_meter_class *pfs)=0
~PFS_index_setup_meters() override=default
PFS_index_setup_meters(PFS_engine_key *key_1)
Definition: table_setup_meters.h:66
Definition: table_helper.h:1474
Class to hold information regarding a table to be created on behalf of a plugin.
Definition: plugin_table.h:40
Table PERFORMANCE_SCHEMA.SETUP_METERS.
Definition: table_setup_meters.h:129
static PFS_engine_table * create(PFS_engine_table_share *)
Definition: table_setup_meters.cc:85
static THR_LOCK m_table_lock
Table share lock.
Definition: table_setup_meters.h:162
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_meters.cc:237
static ha_rows get_row_count()
Definition: table_setup_meters.cc:89
int index_next() override
Find key in index, read record.
Definition: table_setup_meters.cc:151
static PFS_engine_table_share m_share
Table share.
Definition: table_setup_meters.h:134
int rnd_pos(const void *pos) override
Fetch a row by position.
Definition: table_setup_meters.cc:121
pos_t m_pos
Current position.
Definition: table_setup_meters.h:169
int make_row(PFS_meter_class *klass)
Definition: table_setup_meters.cc:177
int rnd_next() override
Fetch the next row in this cursor.
Definition: table_setup_meters.cc:99
int read_row_values(TABLE *table, unsigned char *buf, Field **fields, bool read_all) override
Read the current row values.
Definition: table_setup_meters.cc:199
PFS_index_setup_meters * m_opened_index
Definition: table_setup_meters.h:173
table_setup_meters()
Definition: table_setup_meters.cc:91
static Plugin_table m_table_def
Table definition.
Definition: table_setup_meters.h:164
PFS_meter_index pos_t
Definition: table_setup_meters.h:130
~table_setup_meters() override=default
void reset_position() override
Reset the cursor position to the beginning of the table.
Definition: table_setup_meters.cc:94
pos_t m_next_pos
Next position.
Definition: table_setup_meters.h:171
int index_init(uint idx, bool sorted) override
Definition: table_setup_meters.cc:140
row_setup_meters m_row
Current row.
Definition: table_setup_meters.h:167
This file includes constants used by all storage engines.
my_off_t ha_rows
Definition: my_base.h:1141
static PFS_engine_table_share_proxy table
Definition: pfs.cc:61
Definition: buf0block_hint.cc:30
Performance schema tables (declarations).
static const LEX_CSTRING pfs
Definition: sql_show_processlist.cc:66
A PERFORMANCE_SCHEMA table share.
Definition: pfs_engine_table.h:358
Information for all instrumentation.
Definition: pfs_instr_class.h:212
Instrumentation metadata for a meter.
Definition: pfs_instr_class.h:395
Position of a cursor, for meter iterations.
Definition: table_setup_meters.h:88
uint m_index
Current row index.
Definition: table_setup_meters.h:90
void set_at(uint index)
Set this index at a given position.
Definition: table_setup_meters.h:102
PFS_meter_index(uint index)
Constructor.
Definition: table_setup_meters.h:96
void set_after(const PFS_meter_index *other)
Set this index after a given position.
Definition: table_setup_meters.h:114
void next()
Set this index to the next record.
Definition: table_setup_meters.h:120
void set_at(const PFS_meter_index *other)
Set this index at a given position.
Definition: table_setup_meters.h:108
Definition: thr_lock.h:139
A row of PERFORMANCE_SCHEMA.SETUP_METERS.
Definition: table_setup_meters.h:51
const char * m_description
Definition: table_setup_meters.h:59
uint m_meter_length
Definition: table_setup_meters.h:57
PFS_meter_class * m_instr_class
Columns NAME, ENABLED.
Definition: table_setup_meters.h:53
bool m_enabled
Definition: table_setup_meters.h:61
uint m_description_length
Definition: table_setup_meters.h:60
uint m_frequency
Definition: table_setup_meters.h:58
const char * m_meter
Definition: table_setup_meters.h:56
Helpers to implement a performance schema table.