23#ifndef PFS_STATEMENT_PROVIDER_H
24#define PFS_STATEMENT_PROVIDER_H
36#ifdef HAVE_PSI_STATEMENT_INTERFACE
37#if defined(MYSQL_SERVER) || defined(PFS_DIRECT_CALL)
38#ifndef MYSQL_DYNAMIC_PLUGIN
39#ifndef WITH_LOCK_ORDER
49#define PSI_STATEMENT_CALL(M) pfs_##M##_vc
50#define PSI_DIGEST_CALL(M) pfs_##M##_vc
51#define PSI_PS_CALL(M) pfs_##M##_vc
64 uint db_len,
const char *src_file,
uint src_line);
122 const char *stmt_name,
123 size_t stmt_name_length,
124 const char *sql_text,
125 size_t sql_text_length);
135 const char *text,
uint text_len);
struct PSI_digest_locker PSI_digest_locker
Definition: psi_statement_bits.h:103
unsigned int PSI_statement_key
Instrumented statement key.
Definition: psi_statement_bits.h:47
struct PSI_prepared_stmt PSI_prepared_stmt
Definition: psi_statement_bits.h:96
struct PSI_sp_share PSI_sp_share
Definition: psi_statement_bits.h:110
struct PSI_statement_locker PSI_statement_locker
Definition: psi_statement_bits.h:89
Some integer typedefs for easier portability.
unsigned long long int ulonglong
Definition: my_inttypes.h:55
Defines various enable/disable and HAVE_ macros related to the performance schema instrumentation sys...
static int count
Definition: myisam_ftdump.cc:42
const std::string charset("charset")
static const char * category
Definition: sha2_password.cc:169
void pfs_register_statement_vc(const char *category, PSI_statement_info *info, int count)
Definition: pfs.cc:2537
void pfs_inc_statement_select_range_check_vc(PSI_statement_locker *locker, ulong count)
Definition: pfs.cc:6374
PSI_statement_locker * pfs_refine_statement_vc(PSI_statement_locker *locker, PSI_statement_key key)
Definition: pfs.cc:6152
void pfs_inc_statement_created_tmp_tables_vc(PSI_statement_locker *locker, ulong count)
Definition: pfs.cc:6354
void pfs_set_statement_lock_time_vc(PSI_statement_locker *locker, ulonglong count)
Definition: pfs.cc:6334
void pfs_execute_prepared_stmt_vc(PSI_statement_locker *locker, PSI_prepared_stmt *ps)
Definition: pfs.cc:7531
void pfs_set_statement_secondary_engine_vc(PSI_statement_locker *locker, bool secondary)
Definition: pfs.cc:6410
void pfs_inc_statement_created_tmp_disk_tables_vc(PSI_statement_locker *locker, ulong count)
Definition: pfs.cc:6349
void pfs_inc_statement_select_full_join_vc(PSI_statement_locker *locker, ulong count)
Definition: pfs.cc:6359
void pfs_inc_statement_sort_scan_vc(PSI_statement_locker *locker, ulong count)
Definition: pfs.cc:6398
void pfs_digest_end_vc(PSI_digest_locker *locker, const sql_digest_storage *digest)
Definition: pfs.cc:7453
void pfs_reprepare_prepared_stmt_vc(PSI_prepared_stmt *prepared_stmt)
Definition: pfs.cc:7548
PSI_prepared_stmt * pfs_create_prepared_stmt_vc(void *identity, uint stmt_id, PSI_statement_locker *locker, const char *stmt_name, size_t stmt_name_length, const char *sql_text, size_t sql_text_length)
Definition: pfs.cc:7499
void pfs_set_statement_query_id_vc(PSI_statement_locker *locker, ulonglong count)
Definition: pfs.cc:6315
void pfs_inc_statement_select_scan_vc(PSI_statement_locker *locker, ulong count)
Definition: pfs.cc:6379
void pfs_inc_statement_sort_range_vc(PSI_statement_locker *locker, ulong count)
Definition: pfs.cc:6389
PSI_digest_locker * pfs_digest_start_vc(PSI_statement_locker *locker)
Definition: pfs.cc:7437
void pfs_set_statement_no_index_used_vc(PSI_statement_locker *locker)
Definition: pfs.cc:6402
void pfs_inc_statement_sort_merge_passes_vc(PSI_statement_locker *locker, ulong count)
Definition: pfs.cc:6384
void pfs_set_statement_text_vc(PSI_statement_locker *locker, const char *text, uint text_len)
Definition: pfs.cc:6245
void pfs_set_prepared_stmt_secondary_engine_vc(PSI_prepared_stmt *prepared_stmt, bool secondary)
Definition: pfs.cc:7576
void pfs_destroy_prepared_stmt_vc(PSI_prepared_stmt *prepared_stmt)
Definition: pfs.cc:7541
void pfs_inc_statement_sort_rows_vc(PSI_statement_locker *locker, ulong count)
Definition: pfs.cc:6394
void pfs_end_statement_vc(PSI_statement_locker *locker, void *stmt_da)
Definition: pfs.cc:6444
void pfs_inc_statement_select_range_vc(PSI_statement_locker *locker, ulong count)
Definition: pfs.cc:6369
void pfs_inc_statement_select_full_range_join_vc(PSI_statement_locker *locker, ulong count)
Definition: pfs.cc:6364
PSI_statement_locker * pfs_get_thread_statement_locker_vc(PSI_statement_locker_state *state, PSI_statement_key key, const void *charset, PSI_sp_share *sp_share)
Definition: pfs.cc:5946
void pfs_set_statement_rows_examined_vc(PSI_statement_locker *locker, ulonglong count)
Definition: pfs.cc:6344
void pfs_set_statement_rows_sent_vc(PSI_statement_locker *locker, ulonglong count)
Definition: pfs.cc:6339
void pfs_start_statement_vc(PSI_statement_locker *locker, const char *db, uint db_len, const char *src_file, uint src_line)
Definition: pfs.cc:6200
void pfs_set_prepared_stmt_text_vc(PSI_prepared_stmt *prepared_stmt, const char *text, uint text_len)
Definition: pfs.cc:7559
void pfs_set_statement_no_good_index_used_vc(PSI_statement_locker *locker)
Definition: pfs.cc:6406
Performance schema instrumentation interface.
required string key
Definition: replication_asynchronous_connection_failover.proto:59
Statement instrument information.
Definition: psi_statement_bits.h:124
State data storage for get_thread_statement_locker_v4_t.
Definition: psi_statement_bits.h:151
Structure to store token count/array for a statement on which digest is to be calculated.
Definition: sql_digest.h:97
unsigned int uint
Definition: uca-dump.cc:29