24#ifndef PFS_TABLE_HELPER_H
25#define PFS_TABLE_HELPER_H
470void format_sqltext(
const char *source_sqltext,
size_t source_length,
484 char row_buffer[],
size_t row_buffer_size,
761 all.aggregate(&all_read);
762 all.aggregate(&all_write);
822 all.aggregate(&all_read);
823 all.aggregate(&all_write);
1153 bool &is_null,
long *key_value) {
1154 return reader.
read_long(find_flag, is_null, key_value);
1184 bool &is_null, ulong *key_value) {
1185 return reader.
read_ulong(find_flag, is_null, key_value);
1197 bool do_match(
bool record_null, ulong record_value);
1368 bool &is_null,
char *key_value,
1369 uint *key_value_length,
1370 uint key_value_max_length) {
1373 key_value_length, key_value_max_length));
1376 key_value_length, key_value_max_length));
1379 static bool stateless_match(
bool record_null,
const char *record_string,
1380 size_t record_string_length,
1381 const char *m_key_value,
1382 size_t m_key_value_length,
bool m_is_null,
1386 bool do_match(
bool record_null,
const char *record_value,
1387 size_t record_value_length);
1389 size_t record_value_length);
1406 bool do_match(
bool record_null,
const char *record_value,
1407 size_t record_value_length) {
1408 return stateless_match(record_null, record_value, record_value_length,
1413 size_t record_string_length);
1467 bool match(
const char *
host,
size_t hostname_length);
1503 bool match(ulong value);
1514 bool match(
const char *
name,
size_t name_length);
1526 bool match(
const char *
name,
size_t name_length);
1548 bool match(
const char *engine_name,
size_t length);
1558 bool match(
const char *engine_lock_id,
size_t length);
1571 bool match(
const char *ip,
size_t ip_length);
1606 bool match(
const char *schema_name,
size_t schema_name_length);
1622 bool match(
const char *object_name,
size_t object_name_length);
Abstraction for accessing JSON values irrespective of whether they are (started out as) binary JSON v...
Definition: json_dom.h:1160
Definition: pfs_engine_table.h:267
bool m_is_null
Definition: pfs_engine_table.h:280
enum ha_rkey_function m_find_flag
Definition: pfs_engine_table.h:279
Definition: table_helper.h:1497
PFS_key_bucket_number(const char *name)
Definition: table_helper.h:1499
~PFS_key_bucket_number() override=default
bool match(ulong value)
Definition: table_helper.cc:2044
Definition: table_helper.h:1625
~PFS_key_column_name() override=default
PFS_key_column_name(const char *name)
Definition: table_helper.h:1627
bool match(const PFS_column_row *pfs)
Definition: table_helper.cc:2348
Definition: table_helper.h:1488
PFS_key_digest(const char *digest)
Definition: table_helper.h:1490
bool match(PFS_statements_digest_stat *pfs)
Definition: table_helper.cc:2035
~PFS_key_digest() override=default
Definition: table_helper.h:1552
~PFS_key_engine_lock_id() override=default
bool match(const char *engine_lock_id, size_t length)
Definition: table_helper.cc:2098
PFS_key_engine_lock_id(const char *name)
Definition: table_helper.h:1554
Definition: table_helper.h:1542
PFS_key_engine_name(const char *name)
Definition: table_helper.h:1544
~PFS_key_engine_name() override=default
bool match(const char *engine_name, size_t length)
Definition: table_helper.cc:2094
Definition: table_helper.h:1289
~PFS_key_engine_transaction_id() override=default
PFS_key_engine_transaction_id(const char *name)
Definition: table_helper.h:1291
bool match(ulonglong engine_transaction_id)
Definition: table_helper.cc:1784
Definition: table_helper.h:1351
bool match_error_index(uint error_index)
Definition: table_helper.cc:1825
~PFS_key_error_number() override=default
PFS_key_error_number(const char *name)
Definition: table_helper.h:1353
Definition: table_helper.h:1266
bool match(ulonglong event_id)
Definition: table_helper.cc:1749
PFS_key_event_id(const char *name)
Definition: table_helper.h:1268
~PFS_key_event_id() override=default
bool match_owner(const PFS_table *pfs)
Definition: table_helper.cc:1764
Definition: table_helper.h:1430
bool match(const PFS_instr_class *pfs)
Definition: table_helper.cc:1848
PFS_key_event_name(const char *name)
Definition: table_helper.h:1432
bool match_view(uint view)
Definition: table_helper.cc:1893
~PFS_key_event_name() override=default
Definition: table_helper.h:1585
bool match(const PFS_file *pfs)
Definition: table_helper.cc:2124
PFS_key_file_name(const char *name)
Definition: table_helper.h:1587
~PFS_key_file_name() override=default
Definition: table_helper.h:1519
bool match(const LEX_STRING *name)
Definition: table_helper.cc:2066
~PFS_key_group_name() override=default
PFS_key_group_name(const char *name)
Definition: table_helper.h:1521
Definition: table_helper.h:1457
~PFS_key_host() override=default
bool match(const PFS_thread *pfs)
Definition: table_helper.cc:1994
PFS_key_host(const char *name)
Definition: table_helper.h:1459
Definition: table_helper.h:1564
~PFS_key_ip() override=default
bool match(const PFS_socket *pfs)
Definition: table_helper.cc:2102
PFS_key_ip(const char *name)
Definition: table_helper.h:1566
Definition: table_helper.h:1144
PFS_key_long(const char *name)
Definition: table_helper.h:1146
long m_key_value
Definition: table_helper.h:1172
bool do_match(bool record_null, long record_value)
Definition: table_helper.h:1166
static enum ha_rkey_function stateless_read(PFS_key_reader &reader, enum ha_rkey_function find_flag, bool &is_null, long *key_value)
Definition: table_helper.h:1151
~PFS_key_long() override=default
void read(PFS_key_reader &reader, enum ha_rkey_function find_flag) override
Definition: table_helper.h:1157
static bool stateless_match(bool record_null, long record_value, bool m_is_null, long m_key_value, enum ha_rkey_function find_flag)
Definition: table_helper.cc:1525
Definition: table_helper.h:1203
void read(PFS_key_reader &reader, enum ha_rkey_function find_flag) override
Definition: table_helper.h:1210
~PFS_key_longlong() override=default
PFS_key_longlong(const char *name)
Definition: table_helper.h:1205
static bool stateless_match(bool record_null, longlong record_value, bool m_is_null, longlong m_key_value, enum ha_rkey_function find_flag)
Definition: table_helper.cc:1537
bool do_match(bool record_null, longlong record_value)
Definition: table_helper.h:1219
longlong m_key_value
Definition: table_helper.h:1225
Definition: table_helper.h:1507
~PFS_key_name() override=default
bool match(const LEX_CSTRING *name)
Definition: table_helper.cc:2048
PFS_key_name(const char *name)
Definition: table_helper.h:1509
bool match_not_null(const LEX_STRING *name)
Definition: table_helper.cc:2058
Definition: table_helper.h:1672
PFS_key_object_instance(const char *name)
Definition: table_helper.h:1674
~PFS_key_object_instance() override=default
bool match(const PFS_table *pfs)
Definition: table_helper.cc:2353
const void * m_identity
Definition: table_helper.h:1695
void read(PFS_key_reader &reader, enum ha_rkey_function find_flag) override
Definition: table_helper.h:1679
Definition: table_helper.h:1609
~PFS_key_object_name() override=default
PFS_key_object_name(const char *name)
Definition: table_helper.h:1611
bool match(const PFS_table_share *share)
Definition: table_helper.cc:2305
Definition: table_helper.h:1594
PFS_key_object_schema(const char *name)
Definition: table_helper.h:1596
bool match(const PFS_table_share *share)
Definition: table_helper.cc:2267
~PFS_key_object_schema() override=default
Definition: table_helper.h:1653
enum_object_type m_object_type
Definition: table_helper.h:1669
~PFS_key_object_type_enum() override=default
void read(PFS_key_reader &reader, enum ha_rkey_function find_flag) override
Definition: table_helper.cc:2199
PFS_key_object_type_enum(const char *name)
Definition: table_helper.h:1655
bool do_match(bool record_null, enum_object_type record_value)
Definition: table_helper.cc:2232
bool match(enum_object_type object_type)
Definition: table_helper.cc:2212
Definition: table_helper.h:1634
PFS_key_object_type(const char *name)
Definition: table_helper.h:1636
enum_object_type m_object_type
Definition: table_helper.h:1650
bool do_match(bool record_null, enum_object_type record_value)
Definition: table_helper.cc:2164
bool match(enum_object_type object_type)
Definition: table_helper.cc:2144
void read(PFS_key_reader &reader, enum ha_rkey_function find_flag) override
Definition: table_helper.cc:2128
~PFS_key_object_type() override=default
Definition: table_helper.h:1335
~PFS_key_port() override=default
bool match(const PFS_socket *pfs)
Definition: table_helper.cc:1807
PFS_key_port(const char *name)
Definition: table_helper.h:1337
Definition: table_helper.h:1280
bool match(const PFS_thread *pfs)
Definition: table_helper.cc:1779
PFS_key_processlist_id(const char *name)
Definition: table_helper.h:1282
~PFS_key_processlist_id() override=default
Definition: table_helper.h:1360
bool do_match(bool record_null, const char *record_value, size_t record_value_length)
bool do_match_prefix(bool record_null, const char *record_value, size_t record_value_length)
PFS_key_pstring(const char *name)
Definition: table_helper.h:1362
~PFS_key_pstring() override=default
static bool stateless_match(bool record_null, const char *record_string, size_t record_string_length, const char *m_key_value, size_t m_key_value_length, bool m_is_null, enum ha_rkey_function m_find_flag)
Definition: table_helper.cc:1618
static enum ha_rkey_function stateless_read(PFS_key_reader &reader, enum ha_rkey_function find_flag, bool &is_null, char *key_value, uint *key_value_length, uint key_value_max_length)
Definition: table_helper.h:1366
Definition: table_helper.h:1470
PFS_key_role(const char *name)
Definition: table_helper.h:1472
bool match(const PFS_setup_actor *pfs)
Definition: table_helper.cc:2023
~PFS_key_role() override=default
Definition: table_helper.h:1479
bool match(const PFS_statements_digest_stat *pfs)
Definition: table_helper.cc:2029
~PFS_key_schema() override=default
PFS_key_schema(const char *schema)
Definition: table_helper.h:1481
Definition: table_helper.h:1326
bool match(const PFS_socket *pfs)
Definition: table_helper.cc:1802
~PFS_key_socket_id() override=default
PFS_key_socket_id(const char *name)
Definition: table_helper.h:1328
Definition: table_helper.h:1308
bool match(const PFS_prepared_stmt *pfs)
Definition: table_helper.cc:1793
PFS_key_statement_id(const char *name)
Definition: table_helper.h:1310
~PFS_key_statement_id() override=default
Definition: table_helper.h:1574
~PFS_key_statement_name() override=default
bool match(const PFS_prepared_stmt *pfs)
Definition: table_helper.cc:2120
PFS_key_statement_name(const char *name)
Definition: table_helper.h:1576
Definition: table_helper.h:1393
void read(PFS_key_reader &reader, enum ha_rkey_function find_flag) override
Definition: table_helper.h:1400
PFS_key_string(const char *name)
Definition: table_helper.h:1395
bool do_match_prefix(bool record_null, const char *record_string, size_t record_string_length)
Definition: table_helper.cc:1669
bool do_match(bool record_null, const char *record_value, size_t record_value_length)
Definition: table_helper.h:1406
~PFS_key_string() override=default
char m_key_value[SIZE *FILENAME_CHARSET_MBMAXLEN]
Definition: table_helper.h:1416
uint m_key_value_length
Definition: table_helper.h:1417
Definition: table_helper.h:1250
bool match_owner(const PFS_table *pfs)
Definition: table_helper.cc:1698
~PFS_key_thread_id() override=default
bool match_writer(const PFS_rwlock *pfs)
Definition: table_helper.cc:1739
bool match(ulonglong thread_id)
Definition: table_helper.cc:1688
PFS_key_thread_id(const char *name)
Definition: table_helper.h:1252
Definition: table_helper.h:1420
~PFS_key_thread_name() override=default
PFS_key_thread_name(const char *name)
Definition: table_helper.h:1422
bool match(const PFS_thread *pfs)
Definition: table_helper.cc:1835
Definition: table_helper.h:1299
~PFS_key_thread_os_id() override=default
PFS_key_thread_os_id(const char *name)
Definition: table_helper.h:1301
bool match(const PFS_thread *pfs)
Definition: table_helper.cc:1788
Definition: table_helper.h:1175
void read(PFS_key_reader &reader, enum ha_rkey_function find_flag) override
Definition: table_helper.h:1188
PFS_key_ulong(const char *name)
Definition: table_helper.h:1177
static bool stateless_match(bool record_null, ulong record_value, bool m_is_null, ulong m_key_value, enum ha_rkey_function find_flag)
Definition: table_helper.cc:1531
static enum ha_rkey_function stateless_read(PFS_key_reader &reader, enum ha_rkey_function find_flag, bool &is_null, ulong *key_value)
Definition: table_helper.h:1182
~PFS_key_ulong() override=default
ulong m_key_value
Definition: table_helper.h:1200
bool do_match(bool record_null, ulong record_value)
Definition: table_helper.cc:1550
Definition: table_helper.h:1228
~PFS_key_ulonglong() override=default
bool do_match(bool record_null, ulonglong record_value)
Definition: table_helper.cc:1584
ulonglong m_key_value
Definition: table_helper.h:1247
PFS_key_ulonglong(const char *name)
Definition: table_helper.h:1230
static bool stateless_match(bool record_null, ulonglong record_value, bool m_is_null, ulonglong m_key_value, enum ha_rkey_function find_flag)
Definition: table_helper.cc:1543
void read(PFS_key_reader &reader, enum ha_rkey_function find_flag) override
Definition: table_helper.h:1235
Definition: table_helper.h:1445
PFS_key_user(const char *name)
Definition: table_helper.h:1447
~PFS_key_user() override=default
bool match(const PFS_thread *pfs)
Definition: table_helper.cc:1970
Definition: table_helper.h:1530
bool match(const System_variable *pfs)
Definition: table_helper.cc:2081
PFS_key_variable_name(const char *name)
Definition: table_helper.h:1532
~PFS_key_variable_name() override=default
Definition: table_helper.h:1317
bool match_not_null(ulonglong worker_id)
Definition: table_helper.cc:1798
~PFS_key_worker_id() override=default
PFS_key_worker_id(const char *name)
Definition: table_helper.h:1319
Status variable derived from SHOW_VAR.
Definition: pfs_variable.h:207
Using this class is fraught with peril, and you need to be very careful when doing so.
Definition: sql_string.h:166
System variable derived from sys_var object.
Definition: pfs_variable.h:168
Fido Client Authentication nullptr
Definition: fido_client_plugin.cc:221
int opaque_mdl_duration
Definition: psi_mdl_bits.h:41
int opaque_mdl_status
Definition: psi_mdl_bits.h:44
int opaque_mdl_type
Definition: psi_mdl_bits.h:35
@ HA_KEYTYPE_TEXT
Definition: my_base.h:440
ha_rkey_function
Definition: my_base.h:77
Some integer typedefs for easier portability.
unsigned long long int ulonglong
Definition: my_inttypes.h:55
long long int longlong
Definition: my_inttypes.h:54
static my_thread_id thread_id
Definition: my_thr_init.cc:62
#define NAME_LEN
Definition: mysql_com.h:66
#define NAME_CHAR_LEN
Field/table name length.
Definition: mysql_com.h:59
#define FILENAME_CHARSET_MBMAXLEN
Definition: mysql_com.h:58
const char * host
Definition: mysqladmin.cc:58
std::string str(const mysqlrouter::ConfigGenerator::Options::Endpoint &ep)
Definition: config_generator.cc:1054
Definition: commit_order_queue.h:33
bool length(const dd::Spatial_reference_system *srs, const Geometry *g1, double *length, bool *null) noexcept
Computes the length of linestrings and multilinestrings.
Definition: length.cc:75
Data types for columns used in the performance schema tables (declarations)
enum_isolation_level
Enum values for transaction isolation level columns.
Definition: pfs_column_types.h:323
enum_xa_transaction_state
Enum values for XA transaction state columns.
Definition: pfs_column_types.h:303
enum_object_type
Enum values for the various OBJECT_TYPE columns.
Definition: pfs_column_types.h:221
@ NO_OBJECT_TYPE
Definition: pfs_column_types.h:222
Statement Digest data structures (declarations).
Performance schema tables (declarations).
Events data structures (declarations).
Performance schema instruments metadata (declarations).
Object names (declarations).
Performance schema setup actors (declarations).
Statistics (declarations).
Performance schema timers (declarations).
#define NANOSEC_TO_PICOSEC
Conversion factor, from nano seconds to pico seconds.
Definition: pfs_timer.h:42
#define MICROSEC_TO_PICOSEC
Conversion factor, from micro seconds to pico seconds.
Definition: pfs_timer.h:39
required uint64 port
Definition: replication_asynchronous_connection_failover.proto:32
#define DIGEST_HASH_TO_STRING_LENGTH
SHA-256 = 32 bytes of binary = 64 printable characters.
Definition: sql_digest.h:53
static const LEX_CSTRING pfs
Definition: sql_show_processlist.cc:65
case opt name
Definition: sslopt-case.h:32
Constants and functionality that facilitate working with digests.
Definition: m_ctype.h:382
Metadata lock object key.
Definition: mdl.h:364
Definition: mysql_lex_string.h:39
const char * str
Definition: mysql_lex_string.h:40
size_t length
Definition: mysql_lex_string.h:41
Definition: mysql_lex_string.h:34
Row fragment for columns USER, HOST.
Definition: table_helper.h:550
void set_field(uint index, Field *f)
Set a table field from the row.
Definition: table_helper.cc:591
PFS_user_name m_user_name
Column USER.
Definition: table_helper.h:552
PFS_host_name m_host_name
Column HOST.
Definition: table_helper.h:554
int make_row(PFS_account *pfs)
Build a row from a memory buffer.
Definition: table_helper.cc:585
void set_nullable_field(uint index, Field *f)
Definition: table_helper.cc:605
Per account statistics.
Definition: pfs_account.h:66
Row fragment for timer and byte count stats.
Definition: table_helper.h:722
void set(time_normalizer *normalizer, const PFS_byte_stat *stat)
Build a row with timer and byte count fields from a memory buffer.
Definition: table_helper.h:727
ulonglong m_bytes
Definition: table_helper.h:724
PFS_stat_row m_waits
Definition: table_helper.h:723
Combined statistic.
Definition: pfs_stat.h:129
ulonglong m_bytes
Byte count statistics.
Definition: pfs_stat.h:131
Row fragment for columns OBJECT_TYPE, SCHEMA_NAME, OBJECT_NAME, COLUMN_NAME.
Definition: table_helper.h:619
char m_column_name[NAME_LEN]
Column OBJECT_NAME.
Definition: table_helper.h:631
char m_schema_name[NAME_LEN]
Column SCHEMA_NAME.
Definition: table_helper.h:623
size_t m_column_name_length
Length in bytes of m_column_name.
Definition: table_helper.h:633
void set_nullable_field(uint index, Field *f)
Set a table field from the row.
Definition: table_helper.cc:875
size_t m_schema_name_length
Length in bytes of m_schema_name.
Definition: table_helper.h:625
size_t m_object_name_length
Length in bytes of m_object_name.
Definition: table_helper.h:629
char m_object_name[NAME_LEN]
Column OBJECT_NAME.
Definition: table_helper.h:627
int make_row(const MDL_key *mdl)
Build a row from a memory buffer.
Definition: table_helper.cc:702
enum_object_type m_object_type
Column OBJECT_TYPE.
Definition: table_helper.h:621
Instrumented condition implementation.
Definition: pfs_instr.h:159
Row fragment for connection statistics.
Definition: table_helper.h:999
PFS_connection_stat m_stat
Definition: table_helper.h:1000
void set(const PFS_connection_stat *stat)
Definition: table_helper.h:1002
void set_field(uint index, Field *f)
Set a table field from the row.
Definition: table_helper.cc:1156
Connections statistics.
Definition: pfs_stat.h:1226
Row fragment for columns DIGEST, DIGEST_TEXT.
Definition: table_helper.h:564
char m_digest[DIGEST_HASH_TO_STRING_LENGTH+1]
Column DIGEST.
Definition: table_helper.h:568
uint m_digest_length
Length in bytes of m_digest.
Definition: table_helper.h:570
int make_row(PFS_statements_digest_stat *)
Build a row from a memory buffer.
Definition: table_helper.cc:619
PFS_schema_name m_schema_name
Column SCHEMA_NAME.
Definition: table_helper.h:566
void set_field(uint index, Field *f)
Set a table field from the row.
Definition: table_helper.cc:656
String m_digest_text
Column DIGEST_TEXT.
Definition: table_helper.h:572
Statistics for a server error.
Definition: pfs_stat.h:494
ulonglong m_last_seen
Definition: pfs_stat.h:499
ulonglong m_count
Definition: pfs_stat.h:495
ulonglong m_handled_count
Definition: pfs_stat.h:496
ulonglong m_first_seen
First and last seen timestamps.
Definition: pfs_stat.h:498
Row fragment for error statistics columns.
Definition: table_helper.h:978
uint m_error_index
Definition: table_helper.h:981
ulonglong m_last_seen
Definition: table_helper.h:983
ulonglong m_count
Definition: table_helper.h:979
void set(const PFS_error_single_stat *stat, uint error_index)
Build a row from a memory buffer.
Definition: table_helper.h:986
ulonglong m_first_seen
Definition: table_helper.h:982
void set_field(uint index, Field *f, server_error *temp_error)
Set a table field from the row.
Definition: table_helper.cc:1100
ulonglong m_handled_count
Definition: table_helper.h:980
Row fragment for column EVENT_NAME.
Definition: table_helper.h:581
int make_row(PFS_instr_class *pfs)
Build a row from a memory buffer.
Definition: table_helper.h:588
void set_field(Field *f)
Set a table field from the row.
Definition: table_helper.h:595
uint m_name_length
Length in bytes of m_name.
Definition: table_helper.h:585
const char * m_name
Column EVENT_NAME.
Definition: table_helper.h:583
A wait event record.
Definition: pfs_events_waits.h:68
An event record.
Definition: pfs_events.h:37
Row fragment for file I/O statistics columns.
Definition: table_helper.h:1040
PFS_byte_stat_row m_write
Definition: table_helper.h:1042
void set(time_normalizer *normalizer, const PFS_file_io_stat *stat)
Definition: table_helper.h:1046
PFS_byte_stat_row m_all
Definition: table_helper.h:1044
PFS_byte_stat_row m_misc
Definition: table_helper.h:1043
PFS_byte_stat_row m_read
Definition: table_helper.h:1041
Statistics for FILE I/O.
Definition: pfs_stat.h:271
PFS_byte_stat m_read
READ statistics.
Definition: pfs_stat.h:273
PFS_byte_stat m_write
WRITE statistics.
Definition: pfs_stat.h:275
PFS_byte_stat m_misc
Miscellaneous statistics.
Definition: pfs_stat.h:277
Instrumented File and FILE implementation.
Definition: pfs_instr.h:176
Definition: pfs_name.h:243
Row fragment for column HOST.
Definition: table_helper.h:526
void set_nullable_field(Field *f)
Definition: table_helper.cc:570
int make_row(PFS_host *pfs)
Build a row from a memory buffer.
Definition: table_helper.cc:563
PFS_host_name m_host_name
Column HOST.
Definition: table_helper.h:528
void set_field(Field *f)
Set a table field from the row.
Definition: table_helper.cc:568
Per host statistics.
Definition: pfs_host.h:63
Row fragment for columns OBJECT_TYPE, SCHEMA_NAME, OBJECT_NAME, INDEX_NAME.
Definition: table_helper.h:643
PFS_object_row m_object_row
Definition: table_helper.h:644
void set_field(uint index, Field *f)
Set a table field from the row.
Definition: table_helper.cc:949
size_t m_index_name_length
Length in bytes of m_index_name.
Definition: table_helper.h:648
int make_row(PFS_table_share *pfs, PFS_table_share_index *pfs_index, uint table_index)
Definition: table_helper.cc:935
void set_nullable_field(uint index, Field *f)
Definition: table_helper.cc:968
int make_index_name(PFS_table_share_index *pfs_index, uint table_index)
Build a row from a memory buffer.
Definition: table_helper.cc:910
char m_index_name[NAME_LEN]
Column INDEX_NAME.
Definition: table_helper.h:646
Information for all instrumentation.
Definition: pfs_instr_class.h:204
Name space, internal views used within table setup_instruments.
Definition: table_helper.h:488
static const uint VIEW_IDLE
Definition: table_helper.h:498
static const uint FIRST_INSTRUMENT
Definition: table_helper.h:489
static const uint VIEW_TRANSACTION
Definition: table_helper.h:509
static const uint LAST_VIEW
Definition: table_helper.h:500
static const uint VIEW_COND
Definition: table_helper.h:494
static const uint VIEW_MEMORY
Definition: table_helper.h:511
static const uint FIRST_VIEW
Definition: table_helper.h:491
static const uint VIEW_BUILTIN_MEMORY
Definition: table_helper.h:510
static const uint VIEW_ERROR
Definition: table_helper.h:512
static const uint VIEW_STAGE
Definition: table_helper.h:507
static const uint VIEW_METADATA
Definition: table_helper.h:499
static const uint VIEW_SOCKET
Definition: table_helper.h:497
static const uint VIEW_TABLE
Definition: table_helper.h:496
static const uint VIEW_RWLOCK
Definition: table_helper.h:493
static const uint VIEW_MUTEX
Definition: table_helper.h:492
static const uint LAST_INSTRUMENT
Definition: table_helper.h:514
static const uint VIEW_STATEMENT
Definition: table_helper.h:508
static const uint VIEW_FILE
Definition: table_helper.h:495
PFS_key_reader: Convert key into internal format.
Definition: pfs_engine_table.h:195
ha_base_keytype get_key_type()
Definition: pfs_engine_table.h:250
Definition: pfs_stat.h:990
Row fragment for memory statistics columns.
Definition: table_helper.h:1063
void set_field(uint index, Field *f)
Set a table field from the row.
Definition: table_helper.cc:1309
PFS_memory_monitoring_stat m_stat
Definition: table_helper.h:1064
void set(const PFS_memory_monitoring_stat *stat)
Build a row from a memory buffer.
Definition: table_helper.h:1067
Instrumented mutex implementation.
Definition: pfs_instr.h:100
Definition: pfs_name.h:182
Row fragment for columns OBJECT_TYPE, SCHEMA_NAME, OBJECT_NAME.
Definition: table_helper.h:601
void set_nullable_field(uint index, Field *f)
Definition: table_helper.cc:855
int make_row(PFS_table_share *pfs)
Build a row from a memory buffer.
Definition: table_helper.cc:686
void set_field(uint index, Field *f)
Set a table field from the row.
Definition: table_helper.cc:839
PFS_schema_name m_schema_name
Column SCHEMA_NAME.
Definition: table_helper.h:605
PFS_object_name m_object_name
Column OBJECT_NAME.
Definition: table_helper.h:607
enum_object_type m_object_type
Column OBJECT_TYPE.
Definition: table_helper.h:603
Name space, internal views used within object summaries.
Definition: table_helper.h:518
static const uint LAST_VIEW
Definition: table_helper.h:522
static const uint FIRST_VIEW
Definition: table_helper.h:519
static const uint VIEW_TABLE
Definition: table_helper.h:520
static const uint VIEW_PROGRAM
Definition: table_helper.h:521
Definition: pfs_prepared_stmt.h:41
Definition: pfs_program.h:56
Definition: pfs_name.h:159
Instrumented rwlock implementation.
Definition: pfs_instr.h:126
Definition: pfs_name.h:115
Definition: table_helper.h:1073
size_t m_total_size
Definition: table_helper.h:1076
size_t m_max_total_size
Definition: table_helper.h:1077
void set(const PFS_session_all_memory_stat *stat)
Build a row from a memory buffer.
Definition: table_helper.cc:1355
void set_field(uint index, Field *f)
Set a table field from the row.
Definition: table_helper.cc:1363
size_t m_controlled_size
Definition: table_helper.h:1074
size_t m_max_controlled_size
Definition: table_helper.h:1075
Definition: pfs_stat.h:1135
A setup_actor record.
Definition: pfs_setup_actor.h:58
A setup_object record.
Definition: pfs_setup_object.h:57
Single statistic.
Definition: pfs_stat.h:51
void aggregate(const PFS_single_stat *stat)
Definition: pfs_stat.h:77
ulonglong m_count
Count of values.
Definition: pfs_stat.h:53
ulonglong m_max
Maximum value.
Definition: pfs_stat.h:59
ulonglong m_min
Minimum value.
Definition: pfs_stat.h:57
bool has_timed_stats() const
Definition: pfs_stat.h:75
ulonglong m_sum
Sum of values.
Definition: pfs_stat.h:55
Row fragment for socket I/O statistics columns.
Definition: table_helper.h:1017
PFS_byte_stat_row m_all
Definition: table_helper.h:1021
PFS_byte_stat_row m_misc
Definition: table_helper.h:1020
PFS_byte_stat_row m_read
Definition: table_helper.h:1018
void set(time_normalizer *normalizer, const PFS_socket_io_stat *stat)
Definition: table_helper.h:1023
PFS_byte_stat_row m_write
Definition: table_helper.h:1019
Statistics for SOCKET I/O.
Definition: pfs_stat.h:838
PFS_byte_stat m_read
READ statistics.
Definition: pfs_stat.h:840
PFS_byte_stat m_misc
Miscellaneous statistics.
Definition: pfs_stat.h:844
PFS_byte_stat m_write
WRITE statistics.
Definition: pfs_stat.h:842
Instrumented socket implementation.
Definition: pfs_instr.h:286
Row fragment for stored program statistics.
Definition: table_helper.h:937
void set_field(uint index, Field *f)
Set a table field from the row.
Definition: table_helper.h:946
void set(time_normalizer *normalizer, const PFS_sp_stat *stat)
Build a row from a memory buffer.
Definition: table_helper.h:941
PFS_stat_row m_timer1_row
Definition: table_helper.h:938
Statistics for stored program usage.
Definition: pfs_stat.h:339
PFS_single_stat m_timer1_stat
Definition: pfs_stat.h:340
Row fragment for stage statistics columns.
Definition: table_helper.h:832
void set_field(uint index, Field *f)
Set a table field from the row.
Definition: table_helper.h:841
PFS_stat_row m_timer1_row
Definition: table_helper.h:833
void set(time_normalizer *normalizer, const PFS_stage_stat *stat)
Build a row from a memory buffer.
Definition: table_helper.h:836
Statistics for stage usage.
Definition: pfs_stat.h:322
PFS_single_stat m_timer1_stat
Definition: pfs_stat.h:323
Row fragment for single statistics columns (COUNT, SUM, MIN, AVG, MAX)
Definition: table_helper.h:660
ulonglong m_max
Column MAX_TIMER_WAIT.
Definition: table_helper.h:670
ulonglong m_count
Column COUNT_STAR.
Definition: table_helper.h:662
ulonglong m_avg
Column AVG_TIMER_WAIT.
Definition: table_helper.h:668
void set(time_normalizer *normalizer, const PFS_single_stat *stat)
Build a row with timer fields from a memory buffer.
Definition: table_helper.h:681
void set_field(uint index, Field *f)
Set a table field from the row.
Definition: table_helper.h:698
ulonglong m_sum
Column SUM_TIMER_WAIT.
Definition: table_helper.h:664
void reset()
Definition: table_helper.h:672
ulonglong m_min
Column MIN_TIMER_WAIT.
Definition: table_helper.h:666
Row fragment for statement statistics columns.
Definition: table_helper.h:845
ulonglong m_rows_affected
Definition: table_helper.h:849
ulonglong m_max_controlled_memory
Definition: table_helper.h:871
ulonglong m_max_total_memory
Definition: table_helper.h:872
ulonglong m_select_full_range_join
Definition: table_helper.h:856
ulonglong m_no_good_index_used
Definition: table_helper.h:865
ulonglong m_sort_scan
Definition: table_helper.h:863
void set(time_normalizer *normalizer, const PFS_statement_stat *stat)
Build a row from a memory buffer.
Definition: table_helper.h:876
ulonglong m_count_secondary
Definition: table_helper.h:873
ulonglong m_rows_examined
Definition: table_helper.h:852
ulonglong m_cpu_time
CPU TIME.
Definition: table_helper.h:870
ulonglong m_select_scan
Definition: table_helper.h:859
ulonglong m_sort_rows
Definition: table_helper.h:862
ulonglong m_error_count
Definition: table_helper.h:847
ulonglong m_select_full_join
Definition: table_helper.h:855
ulonglong m_created_tmp_disk_tables
Definition: table_helper.h:853
ulonglong m_sort_range
Definition: table_helper.h:861
ulonglong m_lock_time
Definition: table_helper.h:850
ulonglong m_warning_count
Definition: table_helper.h:848
ulonglong m_no_index_used
Definition: table_helper.h:864
ulonglong m_sort_merge_passes
Definition: table_helper.h:860
ulonglong m_select_range_check
Definition: table_helper.h:858
ulonglong m_created_tmp_tables
Definition: table_helper.h:854
void set_field(uint index, Field *f)
Set a table field from the row.
Definition: table_helper.cc:987
ulonglong m_rows_sent
Definition: table_helper.h:851
ulonglong m_select_range
Definition: table_helper.h:857
PFS_stat_row m_timer1_row
Definition: table_helper.h:846
Statistics for statement usage.
Definition: pfs_stat.h:375
ulonglong m_max_total_memory
Definition: pfs_stat.h:402
ulonglong m_sort_range
Definition: pfs_stat.h:391
ulonglong m_select_range_check
Definition: pfs_stat.h:388
ulonglong m_select_scan
Definition: pfs_stat.h:389
ulonglong m_no_good_index_used
Definition: pfs_stat.h:395
ulonglong m_sort_rows
Definition: pfs_stat.h:392
ulonglong m_lock_time
Definition: pfs_stat.h:380
ulonglong m_created_tmp_disk_tables
Definition: pfs_stat.h:383
ulonglong m_max_controlled_memory
Definition: pfs_stat.h:401
ulonglong m_select_range
Definition: pfs_stat.h:387
ulonglong m_cpu_time
CPU TIME.
Definition: pfs_stat.h:400
ulonglong m_count_secondary
Definition: pfs_stat.h:403
ulonglong m_sort_scan
Definition: pfs_stat.h:393
ulonglong m_select_full_range_join
Definition: pfs_stat.h:386
ulonglong m_select_full_join
Definition: pfs_stat.h:385
ulonglong m_rows_examined
Definition: pfs_stat.h:382
ulonglong m_warning_count
Definition: pfs_stat.h:378
ulonglong m_rows_affected
Definition: pfs_stat.h:379
PFS_single_stat m_timer1_stat
Definition: pfs_stat.h:376
ulonglong m_created_tmp_tables
Definition: pfs_stat.h:384
ulonglong m_error_count
Definition: pfs_stat.h:377
ulonglong m_no_index_used
Definition: pfs_stat.h:394
ulonglong m_sort_merge_passes
Definition: pfs_stat.h:390
ulonglong m_rows_sent
Definition: pfs_stat.h:381
A statement digest stat record.
Definition: pfs_digest.h:58
Row fragment for table I/O statistics columns.
Definition: table_helper.h:734
PFS_stat_row m_all_write
Definition: table_helper.h:737
PFS_stat_row m_fetch
Definition: table_helper.h:738
PFS_stat_row m_all
Definition: table_helper.h:735
PFS_stat_row m_delete
Definition: table_helper.h:741
PFS_stat_row m_update
Definition: table_helper.h:740
PFS_stat_row m_all_read
Definition: table_helper.h:736
PFS_stat_row m_insert
Definition: table_helper.h:739
void set(time_normalizer *normalizer, const PFS_table_io_stat *stat)
Build a row from a memory buffer.
Definition: table_helper.h:744
Single table I/O statistic.
Definition: pfs_stat.h:647
PFS_single_stat m_insert
INSERT statistics.
Definition: pfs_stat.h:652
PFS_single_stat m_fetch
FETCH statistics.
Definition: pfs_stat.h:650
PFS_single_stat m_delete
DELETE statistics.
Definition: pfs_stat.h:656
PFS_single_stat m_update
UPDATE statistics.
Definition: pfs_stat.h:654
Row fragment for table lock statistics columns.
Definition: table_helper.h:771
PFS_stat_row m_write_concurrent_insert
Definition: table_helper.h:781
PFS_stat_row m_read_with_shared_locks
Definition: table_helper.h:776
PFS_stat_row m_all_read
Definition: table_helper.h:773
PFS_stat_row m_all_write
Definition: table_helper.h:774
PFS_stat_row m_write_low_priority
Definition: table_helper.h:782
PFS_stat_row m_read_external
Definition: table_helper.h:779
PFS_stat_row m_read_high_priority
Definition: table_helper.h:777
PFS_stat_row m_read_no_insert
Definition: table_helper.h:778
PFS_stat_row m_write_normal
Definition: table_helper.h:783
PFS_stat_row m_read_normal
Definition: table_helper.h:775
void set(time_normalizer *normalizer, const PFS_table_lock_stat *stat)
Build a row from a memory buffer.
Definition: table_helper.h:787
PFS_stat_row m_write_allow_write
Definition: table_helper.h:780
PFS_stat_row m_all
Definition: table_helper.h:772
PFS_stat_row m_write_external
Definition: table_helper.h:784
Statistics for table locks.
Definition: pfs_stat.h:709
PFS_single_stat m_stat[COUNT_PFS_TL_LOCK_TYPE]
Definition: pfs_stat.h:710
Index statistics of a table.
Definition: pfs_instr_class.h:380
Instrumentation metadata for a table share.
Definition: pfs_instr_class.h:404
Instrumented table implementation.
Definition: pfs_instr.h:192
Instrumentation metadata of a thread.
Definition: pfs_instr_class.h:348
Instrumented thread implementation.
Definition: pfs_instr.h:372
Row fragment for transaction statistics columns.
Definition: table_helper.h:952
PFS_stat_row m_read_write_row
Definition: table_helper.h:954
ulonglong m_savepoint_count
Definition: table_helper.h:956
PFS_stat_row m_timer1_row
Definition: table_helper.h:953
PFS_stat_row m_read_only_row
Definition: table_helper.h:955
ulonglong m_release_savepoint_count
Definition: table_helper.h:958
void set_field(uint index, Field *f)
Set a table field from the row.
Definition: table_helper.cc:1071
ulonglong m_rollback_to_savepoint_count
Definition: table_helper.h:957
void set(time_normalizer *normalizer, const PFS_transaction_stat *stat)
Build a row from a memory buffer.
Definition: table_helper.h:961
Statistics for transaction usage.
Definition: pfs_stat.h:458
PFS_single_stat m_read_write_stat
Definition: pfs_stat.h:459
PFS_single_stat m_read_only_stat
Definition: pfs_stat.h:460
Definition: pfs_name.h:222
Row fragment for column USER.
Definition: table_helper.h:538
PFS_user_name m_user_name
Column USER.
Definition: table_helper.h:540
void set_nullable_field(Field *f)
Definition: table_helper.cc:581
int make_row(PFS_user *pfs)
Build a row from a memory buffer.
Definition: table_helper.cc:574
void set_field(Field *f)
Set a table field from the row.
Definition: table_helper.cc:579
Definition: table_helper.h:1121
int make_row(const char *val, size_t length)
Definition: table_helper.cc:1472
PFS_user_variable_value_row()
Definition: table_helper.h:1123
void clear()
Definition: table_helper.cc:1466
size_t m_value_length
Definition: table_helper.h:1141
PFS_user_variable_value_row(const PFS_user_variable_value_row &rhs)
Definition: table_helper.h:1125
char * m_value
Definition: table_helper.h:1140
const char * get_value() const
Definition: table_helper.h:1133
size_t get_value_length() const
Definition: table_helper.h:1135
~PFS_user_variable_value_row()
Definition: table_helper.h:1129
Per user statistics.
Definition: pfs_user.h:62
Definition: table_helper.h:1086
PFS_variable_name_row()
Definition: table_helper.h:1088
char m_str[NAME_CHAR_LEN+1]
Definition: table_helper.h:1095
int make_row(const char *str, size_t length)
Definition: table_helper.cc:1427
uint m_length
Definition: table_helper.h:1096
Definition: table_helper.h:1099
const CHARSET_INFO * m_charset
Definition: table_helper.h:1118
uint get_length() const
Definition: table_helper.h:1111
int make_row(const Status_variable *var)
Set the row from a status variable.
Definition: table_helper.cc:1441
char m_str[1024]
Definition: table_helper.h:1116
const char * get_str() const
Definition: table_helper.h:1110
uint m_length
Definition: table_helper.h:1117
void set_field(Field *f)
Set a table field from the row.
Definition: table_helper.cc:1462
Definition: table_uvar_by_thread.h:55
A record describing an error message.
Definition: derror.h:38
A time normalizer.
Definition: pfs_timer.h:118
ulonglong wait_to_pico(ulonglong wait) const
Convert a wait from timer units to pico seconds.
Definition: pfs_timer.h:141
unsigned int uint
Definition: uca9-dump.cc:74
static int all(site_def const *s, node_no node)
Definition: xcom_transport.cc:868