25#ifndef PFS_TABLE_HELPER_H
26#define PFS_TABLE_HELPER_H
474void format_sqltext(
const char *source_sqltext,
size_t source_length,
488 char row_buffer[],
size_t row_buffer_size,
792 all.aggregate(&all_read);
793 all.aggregate(&all_write);
853 all.aggregate(&all_read);
854 all.aggregate(&all_write);
1184 bool &
is_null,
long *key_value) {
1215 bool &
is_null, ulong *key_value) {
1228 bool do_match(
bool record_null, ulong record_value);
1399 bool &
is_null,
char *key_value,
1400 uint *key_value_length,
1401 uint key_value_max_length) {
1404 key_value_length, key_value_max_length));
1407 key_value_length, key_value_max_length));
1410 static bool stateless_match(
bool record_null,
const char *record_string,
1411 size_t record_string_length,
1412 const char *m_key_value,
1413 size_t m_key_value_length,
bool m_is_null,
1417 bool do_match(
bool record_null,
const char *record_value,
1418 size_t record_value_length);
1420 size_t record_value_length);
1439 size_t &key_value_length) {
1446 key_value =
nullptr;
1447 key_value_length = 0;
1452 bool do_match(
bool record_null,
const char *record_value,
1453 size_t record_value_length) {
1454 return stateless_match(record_null, record_value, record_value_length,
1459 size_t record_string_length);
1533 bool match(
const char *
host,
size_t hostname_length);
1580 bool match(
const char *
name,
size_t name_length);
1592 bool match(
const char *
name,
size_t name_length);
1614 bool match(
const char *engine_name,
size_t length);
1624 bool match(
const char *engine_lock_id,
size_t length);
1637 bool match(
const char *ip,
size_t ip_length);
1672 bool match(
const char *schema_name,
size_t schema_name_length);
1688 bool match(
const char *object_name,
size_t object_name_length);
Kerberos Client Authentication nullptr
Definition: auth_kerberos_client_plugin.cc:247
Abstraction for accessing JSON values irrespective of whether they are (started out as) binary JSON v...
Definition: json_dom.h:1225
Definition: pfs_engine_table.h:268
bool m_is_null
Definition: pfs_engine_table.h:281
enum ha_rkey_function m_find_flag
Definition: pfs_engine_table.h:280
Definition: table_helper.h:1563
PFS_key_bucket_number(const char *name)
Definition: table_helper.h:1565
~PFS_key_bucket_number() override=default
bool match(ulong value)
Definition: table_helper.cc:2194
Definition: table_helper.h:1691
~PFS_key_column_name() override=default
PFS_key_column_name(const char *name)
Definition: table_helper.h:1693
bool match(const PFS_column_row *pfs)
Definition: table_helper.cc:2494
Definition: table_helper.h:1554
PFS_key_digest(const char *digest)
Definition: table_helper.h:1556
bool match(PFS_statements_digest_stat *pfs)
Definition: table_helper.cc:2185
~PFS_key_digest() override=default
Definition: table_helper.h:1618
~PFS_key_engine_lock_id() override=default
bool match(const char *engine_lock_id, size_t length)
Definition: table_helper.cc:2248
PFS_key_engine_lock_id(const char *name)
Definition: table_helper.h:1620
Definition: table_helper.h:1608
PFS_key_engine_name(const char *name)
Definition: table_helper.h:1610
~PFS_key_engine_name() override=default
bool match(const char *engine_name, size_t length)
Definition: table_helper.cc:2244
Definition: table_helper.h:1320
~PFS_key_engine_transaction_id() override=default
PFS_key_engine_transaction_id(const char *name)
Definition: table_helper.h:1322
bool match(ulonglong engine_transaction_id)
Definition: table_helper.cc:1909
Definition: table_helper.h:1382
bool match_error_index(uint error_index)
Definition: table_helper.cc:1949
~PFS_key_error_number() override=default
PFS_key_error_number(const char *name)
Definition: table_helper.h:1384
Definition: table_helper.h:1297
bool match(ulonglong event_id)
Definition: table_helper.cc:1874
PFS_key_event_id(const char *name)
Definition: table_helper.h:1299
~PFS_key_event_id() override=default
bool match_owner(const PFS_table *pfs)
Definition: table_helper.cc:1889
Definition: table_helper.h:1476
bool match(const PFS_instr_class *pfs)
Definition: table_helper.cc:1972
PFS_key_event_name(const char *name)
Definition: table_helper.h:1478
bool match_view(uint view)
Definition: table_helper.cc:2017
~PFS_key_event_name() override=default
Definition: table_helper.h:1651
bool match(const PFS_file *pfs)
Definition: table_helper.cc:2274
PFS_key_file_name(const char *name)
Definition: table_helper.h:1653
~PFS_key_file_name() override=default
Definition: table_helper.h:1585
bool match(const LEX_STRING *name)
Definition: table_helper.cc:2216
~PFS_key_group_name() override=default
PFS_key_group_name(const char *name)
Definition: table_helper.h:1587
Definition: table_helper.h:1522
~PFS_key_host() override=default
bool match(const PFS_thread *pfs)
Definition: table_helper.cc:2139
PFS_key_host(const char *name)
Definition: table_helper.h:1524
Definition: table_helper.h:1630
~PFS_key_ip() override=default
bool match(const PFS_socket *pfs)
Definition: table_helper.cc:2252
PFS_key_ip(const char *name)
Definition: table_helper.h:1632
Definition: table_helper.h:1175
PFS_key_long(const char *name)
Definition: table_helper.h:1177
long m_key_value
Definition: table_helper.h:1203
bool do_match(bool record_null, long record_value)
Definition: table_helper.h:1197
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:1182
~PFS_key_long() override=default
void read(PFS_key_reader &reader, enum ha_rkey_function find_flag) override
Definition: table_helper.h:1188
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:1656
Definition: table_helper.h:1234
void read(PFS_key_reader &reader, enum ha_rkey_function find_flag) override
Definition: table_helper.h:1241
~PFS_key_longlong() override=default
PFS_key_longlong(const char *name)
Definition: table_helper.h:1236
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:1668
bool do_match(bool record_null, longlong record_value)
Definition: table_helper.h:1250
longlong m_key_value
Definition: table_helper.h:1256
Definition: table_helper.h:1491
~PFS_key_meter_name() override=default
PFS_key_meter_name(const char *name)
Definition: table_helper.h:1493
bool match(PFS_meter_class *pfs)
Definition: table_helper.cc:2094
Definition: table_helper.h:1500
PFS_key_metric_name(const char *name)
Definition: table_helper.h:1502
bool match(PFS_metric_class *pfs)
Definition: table_helper.cc:2102
~PFS_key_metric_name() override=default
Definition: table_helper.h:1573
~PFS_key_name() override=default
bool match(const LEX_CSTRING *name)
Definition: table_helper.cc:2198
PFS_key_name(const char *name)
Definition: table_helper.h:1575
bool match_not_null(const LEX_STRING *name)
Definition: table_helper.cc:2208
Definition: table_helper.h:1738
PFS_key_object_instance(const char *name)
Definition: table_helper.h:1740
~PFS_key_object_instance() override=default
bool match(const PFS_table *pfs)
Definition: table_helper.cc:2499
const void * m_identity
Definition: table_helper.h:1761
void read(PFS_key_reader &reader, enum ha_rkey_function find_flag) override
Definition: table_helper.h:1745
Definition: table_helper.h:1675
~PFS_key_object_name() override=default
PFS_key_object_name(const char *name)
Definition: table_helper.h:1677
bool match(const PFS_table_share *share)
Definition: table_helper.cc:2451
Definition: table_helper.h:1660
PFS_key_object_schema(const char *name)
Definition: table_helper.h:1662
bool match(const PFS_table_share *share)
Definition: table_helper.cc:2413
~PFS_key_object_schema() override=default
Definition: table_helper.h:1719
enum_object_type m_object_type
Definition: table_helper.h:1735
~PFS_key_object_type_enum() override=default
void read(PFS_key_reader &reader, enum ha_rkey_function find_flag) override
Definition: table_helper.cc:2347
PFS_key_object_type_enum(const char *name)
Definition: table_helper.h:1721
bool do_match(bool record_null, enum_object_type record_value)
Definition: table_helper.cc:2380
bool match(enum_object_type object_type)
Definition: table_helper.cc:2360
Definition: table_helper.h:1700
PFS_key_object_type(const char *name)
Definition: table_helper.h:1702
enum_object_type m_object_type
Definition: table_helper.h:1716
bool do_match(bool record_null, enum_object_type record_value)
Definition: table_helper.cc:2314
bool match(enum_object_type object_type)
Definition: table_helper.cc:2294
void read(PFS_key_reader &reader, enum ha_rkey_function find_flag) override
Definition: table_helper.cc:2278
~PFS_key_object_type() override=default
Definition: table_helper.h:1366
~PFS_key_port() override=default
bool match(const PFS_socket *pfs)
Definition: table_helper.cc:1932
PFS_key_port(const char *name)
Definition: table_helper.h:1368
Definition: table_helper.h:1311
bool match(const PFS_thread *pfs)
Definition: table_helper.cc:1904
PFS_key_processlist_id(const char *name)
Definition: table_helper.h:1313
~PFS_key_processlist_id() override=default
Definition: table_helper.h:1391
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:1393
~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:1745
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:1397
Definition: table_helper.h:1536
PFS_key_role(const char *name)
Definition: table_helper.h:1538
bool match(const PFS_setup_actor *pfs)
Definition: table_helper.cc:2173
~PFS_key_role() override=default
Definition: table_helper.h:1545
bool match(const PFS_statements_digest_stat *pfs)
Definition: table_helper.cc:2179
~PFS_key_schema() override=default
PFS_key_schema(const char *schema)
Definition: table_helper.h:1547
Definition: table_helper.h:1357
bool match(const PFS_socket *pfs)
Definition: table_helper.cc:1927
~PFS_key_socket_id() override=default
PFS_key_socket_id(const char *name)
Definition: table_helper.h:1359
Definition: table_helper.h:1339
bool match(const PFS_prepared_stmt *pfs)
Definition: table_helper.cc:1918
PFS_key_statement_id(const char *name)
Definition: table_helper.h:1341
~PFS_key_statement_id() override=default
Definition: table_helper.h:1640
~PFS_key_statement_name() override=default
bool match(const PFS_prepared_stmt *pfs)
Definition: table_helper.cc:2270
PFS_key_statement_name(const char *name)
Definition: table_helper.h:1642
Definition: table_helper.h:1424
void read(PFS_key_reader &reader, enum ha_rkey_function find_flag) override
Definition: table_helper.h:1433
PFS_key_string(const char *name)
Definition: table_helper.h:1426
bool do_match_prefix(bool record_null, const char *record_string, size_t record_string_length)
Definition: table_helper.cc:1794
bool do_match(bool record_null, const char *record_value, size_t record_value_length)
Definition: table_helper.h:1452
void get_exact_key_value(bool &is_null, const char *&key_value, size_t &key_value_length)
Definition: table_helper.h:1438
~PFS_key_string() override=default
char m_key_value[SIZE *FILENAME_CHARSET_MBMAXLEN]
Definition: table_helper.h:1462
uint m_key_value_length
Definition: table_helper.h:1463
Definition: table_helper.h:1281
bool match_owner(const PFS_table *pfs)
Definition: table_helper.cc:1823
~PFS_key_thread_id() override=default
bool match_writer(const PFS_rwlock *pfs)
Definition: table_helper.cc:1864
bool match(ulonglong thread_id)
Definition: table_helper.cc:1813
PFS_key_thread_id(const char *name)
Definition: table_helper.h:1283
Definition: table_helper.h:1466
~PFS_key_thread_name() override=default
PFS_key_thread_name(const char *name)
Definition: table_helper.h:1468
bool match(const PFS_thread *pfs)
Definition: table_helper.cc:1959
Definition: table_helper.h:1330
~PFS_key_thread_os_id() override=default
PFS_key_thread_os_id(const char *name)
Definition: table_helper.h:1332
bool match(const PFS_thread *pfs)
Definition: table_helper.cc:1913
Definition: table_helper.h:1206
void read(PFS_key_reader &reader, enum ha_rkey_function find_flag) override
Definition: table_helper.h:1219
PFS_key_ulong(const char *name)
Definition: table_helper.h:1208
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:1662
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:1213
~PFS_key_ulong() override=default
ulong m_key_value
Definition: table_helper.h:1231
bool do_match(bool record_null, ulong record_value)
Definition: table_helper.cc:1681
Definition: table_helper.h:1259
~PFS_key_ulonglong() override=default
bool do_match(bool record_null, ulonglong record_value)
Definition: table_helper.cc:1713
ulonglong m_key_value
Definition: table_helper.h:1278
PFS_key_ulonglong(const char *name)
Definition: table_helper.h:1261
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:1674
void read(PFS_key_reader &reader, enum ha_rkey_function find_flag) override
Definition: table_helper.h:1266
Definition: table_helper.h:1509
PFS_key_user(const char *name)
Definition: table_helper.h:1511
~PFS_key_user() override=default
bool match(const PFS_thread *pfs)
Definition: table_helper.cc:2110
Definition: table_helper.h:1596
bool match(const System_variable *pfs)
Definition: table_helper.cc:2231
PFS_key_variable_name(const char *name)
Definition: table_helper.h:1598
~PFS_key_variable_name() override=default
Definition: table_helper.h:1348
bool match_not_null(ulonglong worker_id)
Definition: table_helper.cc:1923
~PFS_key_worker_id() override=default
PFS_key_worker_id(const char *name)
Definition: table_helper.h:1350
Status variable derived from SHOW_VAR.
Definition: pfs_variable.h:208
Using this class is fraught with peril, and you need to be very careful when doing so.
Definition: sql_string.h:169
System variable derived from sys_var object.
Definition: pfs_variable.h:169
int opaque_mdl_duration
Definition: psi_mdl_bits.h:42
int opaque_mdl_status
Definition: psi_mdl_bits.h:45
int opaque_mdl_type
Definition: psi_mdl_bits.h:36
@ HA_KEYTYPE_TEXT
Definition: my_base.h:446
ha_rkey_function
Definition: my_base.h:78
@ HA_READ_KEY_EXACT
Definition: my_base.h:79
Some integer typedefs for easier portability.
unsigned long long int ulonglong
Definition: my_inttypes.h:56
long long int longlong
Definition: my_inttypes.h:55
static my_thread_id thread_id
Definition: my_thr_init.cc:60
#define NAME_LEN
Definition: mysql_com.h:67
#define NAME_CHAR_LEN
Field/table name length.
Definition: mysql_com.h:60
#define FILENAME_CHARSET_MBMAXLEN
Definition: mysql_com.h:59
const char * host
Definition: mysqladmin.cc:66
std::string str(const mysqlrouter::ConfigGenerator::Options::Endpoint &ep)
Definition: config_generator.cc:1077
static PFS_engine_table_share_proxy share
Definition: connection_control_pfs_table.cc:92
Definition: commit_order_queue.h:34
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:76
bool index(const std::string &value, const String &search_for, uint32_t *idx)
Definition: contains.h:76
ValueType value(const std::optional< ValueType > &v)
Definition: gtid.h:83
bool is_null(poly_thread thread, poly_value value)
Definition: jit_executor_type_conversion.cc:46
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:330
enum_xa_transaction_state
Enum values for XA transaction state columns.
Definition: pfs_column_types.h:310
enum_object_type
Enum values for the various OBJECT_TYPE columns.
Definition: pfs_column_types.h:227
@ NO_OBJECT_TYPE
Definition: pfs_column_types.h:228
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:43
#define MICROSEC_TO_PICOSEC
Conversion factor, from micro seconds to pico seconds.
Definition: pfs_timer.h:40
required uint64 port
Definition: replication_asynchronous_connection_failover.proto:33
#define DIGEST_HASH_TO_STRING_LENGTH
SHA-256 = 32 bytes of binary = 64 printable characters.
Definition: sql_digest.h:54
static const LEX_CSTRING pfs
Definition: sql_show_processlist.cc:66
case opt name
Definition: sslopt-case.h:29
Constants and functionality that facilitate working with digests.
Definition: m_ctype.h:421
Metadata lock object key.
Definition: mdl.h:366
Definition: mysql_lex_string.h:40
const char * str
Definition: mysql_lex_string.h:41
size_t length
Definition: mysql_lex_string.h:42
Definition: mysql_lex_string.h:35
Row fragment for columns USER, HOST.
Definition: table_helper.h:554
void set_field(uint index, Field *f)
Set a table field from the row.
Definition: table_helper.cc:643
PFS_user_name m_user_name
Column USER.
Definition: table_helper.h:556
PFS_host_name m_host_name
Column HOST.
Definition: table_helper.h:558
int make_row(PFS_account *pfs)
Build a row from a memory buffer.
Definition: table_helper.cc:637
void set_nullable_field(uint index, Field *f)
Definition: table_helper.cc:657
Per account statistics.
Definition: pfs_account.h:67
Row fragment for timer and byte count stats.
Definition: table_helper.h:753
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:758
ulonglong m_bytes
Definition: table_helper.h:755
PFS_stat_row m_waits
Definition: table_helper.h:754
Combined statistic.
Definition: pfs_stat.h:130
ulonglong m_bytes
Byte count statistics.
Definition: pfs_stat.h:132
Row fragment for columns OBJECT_TYPE, SCHEMA_NAME, OBJECT_NAME, COLUMN_NAME.
Definition: table_helper.h:637
char m_column_name[NAME_LEN]
Column OBJECT_NAME.
Definition: table_helper.h:649
char m_schema_name[NAME_LEN]
Column SCHEMA_NAME.
Definition: table_helper.h:641
size_t m_column_name_length
Length in bytes of m_column_name.
Definition: table_helper.h:651
void set_nullable_field(uint index, Field *f)
Set a table field from the row.
Definition: table_helper.cc:968
size_t m_schema_name_length
Length in bytes of m_schema_name.
Definition: table_helper.h:643
size_t m_object_name_length
Length in bytes of m_object_name.
Definition: table_helper.h:647
char m_object_name[NAME_LEN]
Column OBJECT_NAME.
Definition: table_helper.h:645
int make_row(const MDL_key *mdl)
Build a row from a memory buffer.
Definition: table_helper.cc:754
enum_object_type m_object_type
Column OBJECT_TYPE.
Definition: table_helper.h:639
Instrumented condition implementation.
Definition: pfs_instr.h:162
Row fragment for connection statistics.
Definition: table_helper.h:1030
PFS_connection_stat m_stat
Definition: table_helper.h:1031
void set(const PFS_connection_stat *stat)
Definition: table_helper.h:1033
void set_field(uint index, Field *f)
Set a table field from the row.
Definition: table_helper.cc:1287
Connections statistics.
Definition: pfs_stat.h:1227
Row fragment for columns DIGEST, DIGEST_TEXT.
Definition: table_helper.h:568
char m_digest[DIGEST_HASH_TO_STRING_LENGTH+1]
Column DIGEST.
Definition: table_helper.h:572
uint m_digest_length
Length in bytes of m_digest.
Definition: table_helper.h:574
int make_row(PFS_statements_digest_stat *)
Build a row from a memory buffer.
Definition: table_helper.cc:671
PFS_schema_name m_schema_name
Column SCHEMA_NAME.
Definition: table_helper.h:570
void set_field(uint index, Field *f)
Set a table field from the row.
Definition: table_helper.cc:708
String m_digest_text
Column DIGEST_TEXT.
Definition: table_helper.h:576
Statistics for a server error.
Definition: pfs_stat.h:495
ulonglong m_last_seen
Definition: pfs_stat.h:500
ulonglong m_count
Definition: pfs_stat.h:496
ulonglong m_handled_count
Definition: pfs_stat.h:497
ulonglong m_first_seen
First and last seen timestamps.
Definition: pfs_stat.h:499
Row fragment for error statistics columns.
Definition: table_helper.h:1009
uint m_error_index
Definition: table_helper.h:1012
ulonglong m_last_seen
Definition: table_helper.h:1014
ulonglong m_count
Definition: table_helper.h:1010
void set(const PFS_error_single_stat *stat, uint error_index)
Build a row from a memory buffer.
Definition: table_helper.h:1017
ulonglong m_first_seen
Definition: table_helper.h:1013
void set_field(uint index, Field *f, server_error *temp_error)
Set a table field from the row.
Definition: table_helper.cc:1231
ulonglong m_handled_count
Definition: table_helper.h:1011
Row fragment for column EVENT_NAME.
Definition: table_helper.h:585
int make_row(PFS_instr_class *pfs)
Build a row from a memory buffer.
Definition: table_helper.h:592
void set_field(Field *f)
Set a table field from the row.
Definition: table_helper.h:599
uint m_name_length
Length in bytes of m_name.
Definition: table_helper.h:589
const char * m_name
Column EVENT_NAME.
Definition: table_helper.h:587
A wait event record.
Definition: pfs_events_waits.h:69
An event record.
Definition: pfs_events.h:38
Row fragment for file I/O statistics columns.
Definition: table_helper.h:1071
PFS_byte_stat_row m_write
Definition: table_helper.h:1073
void set(time_normalizer *normalizer, const PFS_file_io_stat *stat)
Definition: table_helper.h:1077
PFS_byte_stat_row m_all
Definition: table_helper.h:1075
PFS_byte_stat_row m_misc
Definition: table_helper.h:1074
PFS_byte_stat_row m_read
Definition: table_helper.h:1072
Statistics for FILE I/O.
Definition: pfs_stat.h:272
PFS_byte_stat m_read
READ statistics.
Definition: pfs_stat.h:274
PFS_byte_stat m_write
WRITE statistics.
Definition: pfs_stat.h:276
PFS_byte_stat m_misc
Miscellaneous statistics.
Definition: pfs_stat.h:278
Instrumented File and FILE implementation.
Definition: pfs_instr.h:179
Definition: pfs_name.h:522
Row fragment for column HOST.
Definition: table_helper.h:530
void set_nullable_field(Field *f)
Definition: table_helper.cc:622
int make_row(PFS_host *pfs)
Build a row from a memory buffer.
Definition: table_helper.cc:615
PFS_host_name m_host_name
Column HOST.
Definition: table_helper.h:532
void set_field(Field *f)
Set a table field from the row.
Definition: table_helper.cc:620
Per host statistics.
Definition: pfs_host.h:64
Definition: pfs_name.h:457
Row fragment for columns OBJECT_TYPE, SCHEMA_NAME, OBJECT_NAME, INDEX_NAME.
Definition: table_helper.h:662
PFS_object_row m_object_row
Definition: table_helper.h:663
void set_field(uint index, Field *f)
Set a table field from the row.
Definition: table_helper.cc:1042
size_t m_index_name_length
Length in bytes of m_index_name.
Definition: table_helper.h:667
int make_row(PFS_table_share *pfs, PFS_table_share_index *pfs_index, uint table_index)
Definition: table_helper.cc:1028
void set_nullable_field(uint index, Field *f)
Definition: table_helper.cc:1061
int make_index_name(PFS_table_share_index *pfs_index, uint table_index)
Build a row from a memory buffer.
Definition: table_helper.cc:1003
char m_index_name[NAME_LEN]
Column INDEX_NAME.
Definition: table_helper.h:665
Row fragment for columns OBJECT_TYPE, SCHEMA_NAME, OBJECT_NAME, INDEX_NAME.
Definition: table_helper.h:681
void set_nullable_field(uint index, Field *f)
Definition: table_helper.cc:1099
PFS_object_view_row m_object_row
Definition: table_helper.h:682
PFS_index_name_view m_index_name
Definition: table_helper.h:683
void set_field(uint index, Field *f)
Set a table field from the row.
Definition: table_helper.cc:1080
Information for all instrumentation.
Definition: pfs_instr_class.h:248
Name space, internal views used within table setup_instruments.
Definition: table_helper.h:492
static const uint VIEW_IDLE
Definition: table_helper.h:502
static const uint FIRST_INSTRUMENT
Definition: table_helper.h:493
static const uint VIEW_TRANSACTION
Definition: table_helper.h:513
static const uint LAST_VIEW
Definition: table_helper.h:504
static const uint VIEW_COND
Definition: table_helper.h:498
static const uint VIEW_MEMORY
Definition: table_helper.h:515
static const uint FIRST_VIEW
Definition: table_helper.h:495
static const uint VIEW_BUILTIN_MEMORY
Definition: table_helper.h:514
static const uint VIEW_ERROR
Definition: table_helper.h:516
static const uint VIEW_STAGE
Definition: table_helper.h:511
static const uint VIEW_METADATA
Definition: table_helper.h:503
static const uint VIEW_SOCKET
Definition: table_helper.h:501
static const uint VIEW_TABLE
Definition: table_helper.h:500
static const uint VIEW_RWLOCK
Definition: table_helper.h:497
static const uint VIEW_MUTEX
Definition: table_helper.h:496
static const uint LAST_INSTRUMENT
Definition: table_helper.h:518
static const uint VIEW_STATEMENT
Definition: table_helper.h:512
static const uint VIEW_FILE
Definition: table_helper.h:499
PFS_key_reader: Convert key into internal format.
Definition: pfs_engine_table.h:196
ha_base_keytype get_key_type()
Definition: pfs_engine_table.h:251
Definition: pfs_stat.h:991
Row fragment for memory statistics columns.
Definition: table_helper.h:1094
void set_field(uint index, Field *f)
Set a table field from the row.
Definition: table_helper.cc:1440
PFS_memory_monitoring_stat m_stat
Definition: table_helper.h:1095
void set(const PFS_memory_monitoring_stat *stat)
Build a row from a memory buffer.
Definition: table_helper.h:1098
Instrumentation metadata for a meter.
Definition: pfs_instr_class.h:429
Instrumentation metadata for a metric.
Definition: pfs_instr_class.h:406
Instrumented mutex implementation.
Definition: pfs_instr.h:103
Definition: pfs_name.h:386
Definition: pfs_name.h:344
Row fragment for columns OBJECT_TYPE, SCHEMA_NAME, OBJECT_NAME.
Definition: table_helper.h:605
void set_nullable_field(uint index, Field *f)
Definition: table_helper.cc:912
int make_row(PFS_table_share *pfs)
Build a row from a memory buffer.
Definition: table_helper.cc:738
void set_field(uint index, Field *f)
Set a table field from the row.
Definition: table_helper.cc:896
PFS_schema_name m_schema_name
Column SCHEMA_NAME.
Definition: table_helper.h:609
PFS_object_name m_object_name
Column OBJECT_NAME.
Definition: table_helper.h:611
enum_object_type m_object_type
Column OBJECT_TYPE.
Definition: table_helper.h:607
Name space, internal views used within object summaries.
Definition: table_helper.h:522
static const uint LAST_VIEW
Definition: table_helper.h:526
static const uint FIRST_VIEW
Definition: table_helper.h:523
static const uint VIEW_TABLE
Definition: table_helper.h:524
static const uint VIEW_PROGRAM
Definition: table_helper.h:525
Row fragment for columns OBJECT_TYPE, SCHEMA_NAME, OBJECT_NAME.
Definition: table_helper.h:622
PFS_object_name_view m_object_name
Column OBJECT_NAME.
Definition: table_helper.h:628
void set_field(uint index, Field *f)
Set a table field from the row.
Definition: table_helper.cc:932
PFS_schema_name_view m_schema_name
Column SCHEMA_NAME.
Definition: table_helper.h:626
enum_object_type m_object_type
Column OBJECT_TYPE.
Definition: table_helper.h:624
void set_nullable_field(uint index, Field *f)
Definition: table_helper.cc:948
Definition: pfs_prepared_stmt.h:42
Definition: pfs_program.h:57
Definition: pfs_name.h:293
Instrumented rwlock implementation.
Definition: pfs_instr.h:129
Definition: pfs_name.h:221
Definition: pfs_name.h:194
Definition: table_helper.h:1104
size_t m_total_size
Definition: table_helper.h:1107
size_t m_max_total_size
Definition: table_helper.h:1108
void set(const PFS_session_all_memory_stat *stat)
Build a row from a memory buffer.
Definition: table_helper.cc:1486
void set_field(uint index, Field *f)
Set a table field from the row.
Definition: table_helper.cc:1494
size_t m_controlled_size
Definition: table_helper.h:1105
size_t m_max_controlled_size
Definition: table_helper.h:1106
Definition: pfs_stat.h:1136
A setup_actor record.
Definition: pfs_setup_actor.h:59
A setup_object record.
Definition: pfs_setup_object.h:58
Single statistic.
Definition: pfs_stat.h:52
void aggregate(const PFS_single_stat *stat)
Definition: pfs_stat.h:78
ulonglong m_count
Count of values.
Definition: pfs_stat.h:54
ulonglong m_max
Maximum value.
Definition: pfs_stat.h:60
ulonglong m_min
Minimum value.
Definition: pfs_stat.h:58
bool has_timed_stats() const
Definition: pfs_stat.h:76
ulonglong m_sum
Sum of values.
Definition: pfs_stat.h:56
Row fragment for socket I/O statistics columns.
Definition: table_helper.h:1048
PFS_byte_stat_row m_all
Definition: table_helper.h:1052
PFS_byte_stat_row m_misc
Definition: table_helper.h:1051
PFS_byte_stat_row m_read
Definition: table_helper.h:1049
void set(time_normalizer *normalizer, const PFS_socket_io_stat *stat)
Definition: table_helper.h:1054
PFS_byte_stat_row m_write
Definition: table_helper.h:1050
Statistics for SOCKET I/O.
Definition: pfs_stat.h:839
PFS_byte_stat m_read
READ statistics.
Definition: pfs_stat.h:841
PFS_byte_stat m_misc
Miscellaneous statistics.
Definition: pfs_stat.h:845
PFS_byte_stat m_write
WRITE statistics.
Definition: pfs_stat.h:843
Instrumented socket implementation.
Definition: pfs_instr.h:289
Row fragment for stored program statistics.
Definition: table_helper.h:968
void set_field(uint index, Field *f)
Set a table field from the row.
Definition: table_helper.h:977
void set(time_normalizer *normalizer, const PFS_sp_stat *stat)
Build a row from a memory buffer.
Definition: table_helper.h:972
PFS_stat_row m_timer1_row
Definition: table_helper.h:969
Statistics for stored program usage.
Definition: pfs_stat.h:340
PFS_single_stat m_timer1_stat
Definition: pfs_stat.h:341
Row fragment for stage statistics columns.
Definition: table_helper.h:863
void set_field(uint index, Field *f)
Set a table field from the row.
Definition: table_helper.h:872
PFS_stat_row m_timer1_row
Definition: table_helper.h:864
void set(time_normalizer *normalizer, const PFS_stage_stat *stat)
Build a row from a memory buffer.
Definition: table_helper.h:867
Statistics for stage usage.
Definition: pfs_stat.h:323
PFS_single_stat m_timer1_stat
Definition: pfs_stat.h:324
Row fragment for single statistics columns (COUNT, SUM, MIN, AVG, MAX)
Definition: table_helper.h:691
ulonglong m_max
Column MAX_TIMER_WAIT.
Definition: table_helper.h:701
ulonglong m_count
Column COUNT_STAR.
Definition: table_helper.h:693
ulonglong m_avg
Column AVG_TIMER_WAIT.
Definition: table_helper.h:699
void set(time_normalizer *normalizer, const PFS_single_stat *stat)
Build a row with timer fields from a memory buffer.
Definition: table_helper.h:712
void set_field(uint index, Field *f)
Set a table field from the row.
Definition: table_helper.h:729
ulonglong m_sum
Column SUM_TIMER_WAIT.
Definition: table_helper.h:695
void reset()
Definition: table_helper.h:703
ulonglong m_min
Column MIN_TIMER_WAIT.
Definition: table_helper.h:697
Row fragment for statement statistics columns.
Definition: table_helper.h:876
ulonglong m_rows_affected
Definition: table_helper.h:880
ulonglong m_max_controlled_memory
Definition: table_helper.h:902
ulonglong m_max_total_memory
Definition: table_helper.h:903
ulonglong m_select_full_range_join
Definition: table_helper.h:887
ulonglong m_no_good_index_used
Definition: table_helper.h:896
ulonglong m_sort_scan
Definition: table_helper.h:894
void set(time_normalizer *normalizer, const PFS_statement_stat *stat)
Build a row from a memory buffer.
Definition: table_helper.h:907
ulonglong m_count_secondary
Definition: table_helper.h:904
ulonglong m_rows_examined
Definition: table_helper.h:883
ulonglong m_cpu_time
CPU TIME.
Definition: table_helper.h:901
ulonglong m_select_scan
Definition: table_helper.h:890
ulonglong m_sort_rows
Definition: table_helper.h:893
ulonglong m_error_count
Definition: table_helper.h:878
ulonglong m_select_full_join
Definition: table_helper.h:886
ulonglong m_created_tmp_disk_tables
Definition: table_helper.h:884
ulonglong m_sort_range
Definition: table_helper.h:892
ulonglong m_lock_time
Definition: table_helper.h:881
ulonglong m_warning_count
Definition: table_helper.h:879
ulonglong m_no_index_used
Definition: table_helper.h:895
ulonglong m_sort_merge_passes
Definition: table_helper.h:891
ulonglong m_select_range_check
Definition: table_helper.h:889
ulonglong m_created_tmp_tables
Definition: table_helper.h:885
void set_field(uint index, Field *f)
Set a table field from the row.
Definition: table_helper.cc:1118
ulonglong m_rows_sent
Definition: table_helper.h:882
ulonglong m_select_range
Definition: table_helper.h:888
PFS_stat_row m_timer1_row
Definition: table_helper.h:877
Statistics for statement usage.
Definition: pfs_stat.h:376
ulonglong m_max_total_memory
Definition: pfs_stat.h:403
ulonglong m_sort_range
Definition: pfs_stat.h:392
ulonglong m_select_range_check
Definition: pfs_stat.h:389
ulonglong m_select_scan
Definition: pfs_stat.h:390
ulonglong m_no_good_index_used
Definition: pfs_stat.h:396
ulonglong m_sort_rows
Definition: pfs_stat.h:393
ulonglong m_lock_time
Definition: pfs_stat.h:381
ulonglong m_created_tmp_disk_tables
Definition: pfs_stat.h:384
ulonglong m_max_controlled_memory
Definition: pfs_stat.h:402
ulonglong m_select_range
Definition: pfs_stat.h:388
ulonglong m_cpu_time
CPU TIME.
Definition: pfs_stat.h:401
ulonglong m_count_secondary
Definition: pfs_stat.h:404
ulonglong m_sort_scan
Definition: pfs_stat.h:394
ulonglong m_select_full_range_join
Definition: pfs_stat.h:387
ulonglong m_select_full_join
Definition: pfs_stat.h:386
ulonglong m_rows_examined
Definition: pfs_stat.h:383
ulonglong m_warning_count
Definition: pfs_stat.h:379
ulonglong m_rows_affected
Definition: pfs_stat.h:380
PFS_single_stat m_timer1_stat
Definition: pfs_stat.h:377
ulonglong m_created_tmp_tables
Definition: pfs_stat.h:385
ulonglong m_error_count
Definition: pfs_stat.h:378
ulonglong m_no_index_used
Definition: pfs_stat.h:395
ulonglong m_sort_merge_passes
Definition: pfs_stat.h:391
ulonglong m_rows_sent
Definition: pfs_stat.h:382
A statement digest stat record.
Definition: pfs_digest.h:59
Row fragment for table I/O statistics columns.
Definition: table_helper.h:765
PFS_stat_row m_all_write
Definition: table_helper.h:768
PFS_stat_row m_fetch
Definition: table_helper.h:769
PFS_stat_row m_all
Definition: table_helper.h:766
PFS_stat_row m_delete
Definition: table_helper.h:772
PFS_stat_row m_update
Definition: table_helper.h:771
PFS_stat_row m_all_read
Definition: table_helper.h:767
PFS_stat_row m_insert
Definition: table_helper.h:770
void set(time_normalizer *normalizer, const PFS_table_io_stat *stat)
Build a row from a memory buffer.
Definition: table_helper.h:775
Single table I/O statistic.
Definition: pfs_stat.h:648
PFS_single_stat m_insert
INSERT statistics.
Definition: pfs_stat.h:653
PFS_single_stat m_fetch
FETCH statistics.
Definition: pfs_stat.h:651
PFS_single_stat m_delete
DELETE statistics.
Definition: pfs_stat.h:657
PFS_single_stat m_update
UPDATE statistics.
Definition: pfs_stat.h:655
Row fragment for table lock statistics columns.
Definition: table_helper.h:802
PFS_stat_row m_write_concurrent_insert
Definition: table_helper.h:812
PFS_stat_row m_read_with_shared_locks
Definition: table_helper.h:807
PFS_stat_row m_all_read
Definition: table_helper.h:804
PFS_stat_row m_all_write
Definition: table_helper.h:805
PFS_stat_row m_write_low_priority
Definition: table_helper.h:813
PFS_stat_row m_read_external
Definition: table_helper.h:810
PFS_stat_row m_read_high_priority
Definition: table_helper.h:808
PFS_stat_row m_read_no_insert
Definition: table_helper.h:809
PFS_stat_row m_write_normal
Definition: table_helper.h:814
PFS_stat_row m_read_normal
Definition: table_helper.h:806
void set(time_normalizer *normalizer, const PFS_table_lock_stat *stat)
Build a row from a memory buffer.
Definition: table_helper.h:818
PFS_stat_row m_write_allow_write
Definition: table_helper.h:811
PFS_stat_row m_all
Definition: table_helper.h:803
PFS_stat_row m_write_external
Definition: table_helper.h:815
Statistics for table locks.
Definition: pfs_stat.h:710
PFS_single_stat m_stat[COUNT_PFS_TL_LOCK_TYPE]
Definition: pfs_stat.h:711
Index statistics of a table.
Definition: pfs_instr_class.h:489
Instrumentation metadata for a table share.
Definition: pfs_instr_class.h:513
Instrumented table implementation.
Definition: pfs_instr.h:195
Instrumentation metadata of a thread.
Definition: pfs_instr_class.h:394
Instrumented thread implementation.
Definition: pfs_instr.h:375
Row fragment for transaction statistics columns.
Definition: table_helper.h:983
PFS_stat_row m_read_write_row
Definition: table_helper.h:985
ulonglong m_savepoint_count
Definition: table_helper.h:987
PFS_stat_row m_timer1_row
Definition: table_helper.h:984
PFS_stat_row m_read_only_row
Definition: table_helper.h:986
ulonglong m_release_savepoint_count
Definition: table_helper.h:989
void set_field(uint index, Field *f)
Set a table field from the row.
Definition: table_helper.cc:1202
ulonglong m_rollback_to_savepoint_count
Definition: table_helper.h:988
void set(time_normalizer *normalizer, const PFS_transaction_stat *stat)
Build a row from a memory buffer.
Definition: table_helper.h:992
Statistics for transaction usage.
Definition: pfs_stat.h:459
PFS_single_stat m_read_write_stat
Definition: pfs_stat.h:460
PFS_single_stat m_read_only_stat
Definition: pfs_stat.h:461
Definition: pfs_name.h:478
Row fragment for column USER.
Definition: table_helper.h:542
PFS_user_name m_user_name
Column USER.
Definition: table_helper.h:544
void set_nullable_field(Field *f)
Definition: table_helper.cc:633
int make_row(PFS_user *pfs)
Build a row from a memory buffer.
Definition: table_helper.cc:626
void set_field(Field *f)
Set a table field from the row.
Definition: table_helper.cc:631
Definition: table_helper.h:1152
int make_row(const char *val, size_t length)
Definition: table_helper.cc:1603
PFS_user_variable_value_row()
Definition: table_helper.h:1154
void clear()
Definition: table_helper.cc:1597
size_t m_value_length
Definition: table_helper.h:1172
PFS_user_variable_value_row(const PFS_user_variable_value_row &rhs)
Definition: table_helper.h:1156
char * m_value
Definition: table_helper.h:1171
const char * get_value() const
Definition: table_helper.h:1164
size_t get_value_length() const
Definition: table_helper.h:1166
~PFS_user_variable_value_row()
Definition: table_helper.h:1160
Per user statistics.
Definition: pfs_user.h:63
Definition: table_helper.h:1117
PFS_variable_name_row()
Definition: table_helper.h:1119
char m_str[NAME_CHAR_LEN+1]
Definition: table_helper.h:1126
int make_row(const char *str, size_t length)
Definition: table_helper.cc:1558
uint m_length
Definition: table_helper.h:1127
Definition: table_helper.h:1130
const CHARSET_INFO * m_charset
Definition: table_helper.h:1149
uint get_length() const
Definition: table_helper.h:1142
int make_row(const Status_variable *var)
Set the row from a status variable.
Definition: table_helper.cc:1572
char m_str[1024]
Definition: table_helper.h:1147
const char * get_str() const
Definition: table_helper.h:1141
uint m_length
Definition: table_helper.h:1148
void set_field(Field *f)
Set a table field from the row.
Definition: table_helper.cc:1593
Definition: table_uvar_by_thread.h:56
A record describing an error message.
Definition: derror.h:39
A time normalizer.
Definition: pfs_timer.h:119
ulonglong wait_to_pico(ulonglong wait) const
Convert a wait from timer units to pico seconds.
Definition: pfs_timer.h:142