MySQL 9.0.0
Source Code Documentation
Collaboration diagram for Statement Instrumentation (API):

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

Macro Definition Documentation

◆ MYSQL_DIGEST_END

#define MYSQL_DIGEST_END (   LOCKER,
  DIGEST 
)    inline_mysql_digest_end(LOCKER, DIGEST)

◆ MYSQL_DIGEST_START

#define MYSQL_DIGEST_START (   LOCKER)    inline_mysql_digest_start(LOCKER)

◆ MYSQL_END_STATEMENT

#define MYSQL_END_STATEMENT (   LOCKER,
  DA 
)    inline_mysql_end_statement(LOCKER, DA)

◆ MYSQL_NOTIFY_STATEMENT_QUERY_ATTRIBUTES

#define MYSQL_NOTIFY_STATEMENT_QUERY_ATTRIBUTES (   LOCKER,
  P1 
)     inline_mysql_notify_statement_query_attributes(LOCKER, P1)

◆ MYSQL_REFINE_STATEMENT

#define MYSQL_REFINE_STATEMENT (   LOCKER,
 
)     inline_mysql_refine_statement(LOCKER, K)

◆ MYSQL_SET_STATEMENT_LOCK_TIME

#define MYSQL_SET_STATEMENT_LOCK_TIME (   LOCKER,
  P1 
)     inline_mysql_set_statement_lock_time(LOCKER, P1)

◆ MYSQL_SET_STATEMENT_QUERY_ID

#define MYSQL_SET_STATEMENT_QUERY_ID (   LOCKER,
  P1 
)     inline_mysql_set_statement_query_id(LOCKER, P1)

◆ MYSQL_SET_STATEMENT_ROWS_EXAMINED

#define MYSQL_SET_STATEMENT_ROWS_EXAMINED (   LOCKER,
  P1 
)     inline_mysql_set_statement_rows_examined(LOCKER, P1)

◆ MYSQL_SET_STATEMENT_ROWS_SENT

#define MYSQL_SET_STATEMENT_ROWS_SENT (   LOCKER,
  P1 
)     inline_mysql_set_statement_rows_sent(LOCKER, P1)

◆ MYSQL_SET_STATEMENT_TEXT

#define MYSQL_SET_STATEMENT_TEXT (   LOCKER,
  P1,
  P2 
)     inline_mysql_set_statement_text(LOCKER, P1, P2)

◆ MYSQL_START_STATEMENT

#define MYSQL_START_STATEMENT (   STATE,
  K,
  DB,
  DB_LEN,
  CS,
  SPS 
)
Value:
inline_mysql_start_statement(STATE, K, DB, DB_LEN, CS, SPS, __FILE__, \
__LINE__)
static struct PSI_statement_locker * inline_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)
Definition: mysql_statement.h:203

◆ mysql_statement_register

#define mysql_statement_register (   P1,
  P2,
  P3 
)     inline_mysql_statement_register(P1, P2, P3)

Statement registration.

Function Documentation

◆ inline_mysql_digest_end()

static void inline_mysql_digest_end ( PSI_digest_locker locker,
const sql_digest_storage digest 
)
inlinestatic

◆ inline_mysql_digest_start()

static struct PSI_digest_locker * inline_mysql_digest_start ( PSI_statement_locker locker)
inlinestatic

◆ inline_mysql_end_statement()

static void inline_mysql_end_statement ( struct PSI_statement_locker locker,
Diagnostics_area stmt_da 
)
inlinestatic

◆ inline_mysql_notify_statement_query_attributes()

static void inline_mysql_notify_statement_query_attributes ( PSI_statement_locker locker,
bool  with_query_attributes 
)
inlinestatic

◆ inline_mysql_refine_statement()

static struct PSI_statement_locker * inline_mysql_refine_statement ( PSI_statement_locker locker,
PSI_statement_key  key 
)
inlinestatic

◆ inline_mysql_set_statement_lock_time()

static void inline_mysql_set_statement_lock_time ( PSI_statement_locker locker,
ulonglong  count 
)
inlinestatic

◆ inline_mysql_set_statement_query_id()

static void inline_mysql_set_statement_query_id ( PSI_statement_locker locker,
ulonglong  id 
)
inlinestatic

◆ inline_mysql_set_statement_rows_examined()

static void inline_mysql_set_statement_rows_examined ( PSI_statement_locker locker,
ulonglong  count 
)
inlinestatic

◆ inline_mysql_set_statement_rows_sent()

static void inline_mysql_set_statement_rows_sent ( PSI_statement_locker locker,
ulonglong  count 
)
inlinestatic

◆ inline_mysql_set_statement_text()

static void inline_mysql_set_statement_text ( PSI_statement_locker locker,
const char *  text,
uint  text_len 
)
inlinestatic

◆ inline_mysql_start_statement()

static struct PSI_statement_locker * inline_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 
)
inlinestatic

◆ inline_mysql_statement_register()

static void inline_mysql_statement_register ( const char *  category,
PSI_statement_info info,
int  count 
)
inlinestatic

◆ mysql_statement_set_secondary_engine()

static void mysql_statement_set_secondary_engine ( PSI_statement_locker locker,
bool  secondary 
)
inlinestatic