MySQL 9.1.0
Source Code Documentation
mysql_statement.h File Reference

Instrumentation helpers for statements. More...

Go to the source code of this file.

Macros

#define mysql_statement_register(P1, P2, P3)    inline_mysql_statement_register(P1, P2, P3)
 Statement registration. More...
 
#define MYSQL_DIGEST_START(LOCKER)   inline_mysql_digest_start(LOCKER)
 
#define MYSQL_DIGEST_END(LOCKER, DIGEST)   inline_mysql_digest_end(LOCKER, DIGEST)
 
#define MYSQL_START_STATEMENT(STATE, K, DB, DB_LEN, CS, SPS)
 
#define MYSQL_REFINE_STATEMENT(LOCKER, K)    inline_mysql_refine_statement(LOCKER, K)
 
#define MYSQL_SET_STATEMENT_TEXT(LOCKER, P1, P2)    inline_mysql_set_statement_text(LOCKER, P1, P2)
 
#define MYSQL_SET_STATEMENT_QUERY_ID(LOCKER, P1)    inline_mysql_set_statement_query_id(LOCKER, P1)
 
#define MYSQL_SET_STATEMENT_LOCK_TIME(LOCKER, P1)    inline_mysql_set_statement_lock_time(LOCKER, P1)
 
#define MYSQL_SET_STATEMENT_ROWS_SENT(LOCKER, P1)    inline_mysql_set_statement_rows_sent(LOCKER, P1)
 
#define MYSQL_SET_STATEMENT_ROWS_EXAMINED(LOCKER, P1)    inline_mysql_set_statement_rows_examined(LOCKER, P1)
 
#define MYSQL_NOTIFY_STATEMENT_QUERY_ATTRIBUTES(LOCKER, P1)    inline_mysql_notify_statement_query_attributes(LOCKER, P1)
 
#define MYSQL_END_STATEMENT(LOCKER, DA)   inline_mysql_end_statement(LOCKER, DA)
 

Functions

static void inline_mysql_statement_register (const char *category, PSI_statement_info *info, int count)
 
static struct PSI_digest_lockerinline_mysql_digest_start (PSI_statement_locker *locker)
 
static void inline_mysql_digest_end (PSI_digest_locker *locker, const sql_digest_storage *digest)
 
static struct PSI_statement_lockerinline_mysql_start_statement (PSI_statement_locker_state *state, PSI_statement_key key, const char *db, uint db_len, const CHARSET_INFO *charset, PSI_sp_share *sp_share, const char *src_file, int src_line)
 
static struct PSI_statement_lockerinline_mysql_refine_statement (PSI_statement_locker *locker, PSI_statement_key key)
 
static void inline_mysql_set_statement_text (PSI_statement_locker *locker, const char *text, uint text_len)
 
static void inline_mysql_set_statement_query_id (PSI_statement_locker *locker, ulonglong id)
 
static void inline_mysql_set_statement_lock_time (PSI_statement_locker *locker, ulonglong count)
 
static void inline_mysql_set_statement_rows_sent (PSI_statement_locker *locker, ulonglong count)
 
static void inline_mysql_set_statement_rows_examined (PSI_statement_locker *locker, ulonglong count)
 
static void inline_mysql_notify_statement_query_attributes (PSI_statement_locker *locker, bool with_query_attributes)
 
static void inline_mysql_end_statement (struct PSI_statement_locker *locker, Diagnostics_area *stmt_da)
 
static void mysql_statement_set_secondary_engine (PSI_statement_locker *locker, bool secondary)
 

Detailed Description

Instrumentation helpers for statements.