MySQL 8.4.3
Source Code Documentation
psi_table_bits.h File Reference

Performance schema instrumentation interface. More...

Go to the source code of this file.

Classes

struct  PSI_table_locker_state
 State data storage for start_table_io_wait_v1_t, start_table_lock_wait_v1_t. More...
 

Typedefs

typedef struct PSI_table_locker PSI_table_locker
 
typedef enum PSI_table_io_operation PSI_table_io_operation
 
typedef struct PSI_table_locker_state PSI_table_locker_state
 
typedef struct PSI_table_share PSI_table_share
 
typedef struct PSI_table PSI_table
 
typedef enum PSI_table_lock_operation PSI_table_lock_operation
 
typedef struct PSI_table_share *(* get_table_share_v1_t) (bool temporary, struct TABLE_SHARE *share)
 Acquire a table share instrumentation. More...
 
typedef void(* release_table_share_v1_t) (struct PSI_table_share *share)
 Release a table share. More...
 
typedef void(* drop_table_share_v1_t) (bool temporary, const char *schema_name, int schema_name_length, const char *table_name, int table_name_length)
 Drop a table share. More...
 
typedef struct PSI_table *(* open_table_v1_t) (struct PSI_table_share *share, const void *identity)
 Open an instrumentation table handle. More...
 
typedef void(* unbind_table_v1_t) (struct PSI_table *table)
 Unbind a table handle from the current thread. More...
 
typedef PSI_table *(* rebind_table_v1_t) (PSI_table_share *share, const void *identity, PSI_table *table)
 Rebind a table handle to the current thread. More...
 
typedef void(* close_table_v1_t) (struct TABLE_SHARE *server_share, struct PSI_table *table)
 Close an instrumentation table handle. More...
 
typedef struct PSI_table_locker *(* start_table_io_wait_v1_t) (struct PSI_table_locker_state *state, struct PSI_table *table, enum PSI_table_io_operation op, unsigned int index, const char *src_file, unsigned int src_line)
 Record a table instrumentation io wait start event. More...
 
typedef void(* end_table_io_wait_v1_t) (struct PSI_table_locker *locker, unsigned long long numrows)
 Record a table instrumentation io wait end event. More...
 
typedef struct PSI_table_locker *(* start_table_lock_wait_v1_t) (struct PSI_table_locker_state *state, struct PSI_table *table, enum PSI_table_lock_operation op, unsigned long flags, const char *src_file, unsigned int src_line)
 Record a table instrumentation lock wait start event. More...
 
typedef void(* end_table_lock_wait_v1_t) (struct PSI_table_locker *locker)
 Record a table instrumentation lock wait end event. More...
 
typedef void(* unlock_table_v1_t) (struct PSI_table *table)
 Record a table unlock event. More...
 

Enumerations

enum  PSI_table_io_operation { PSI_TABLE_FETCH_ROW = 0 , PSI_TABLE_WRITE_ROW = 1 , PSI_TABLE_UPDATE_ROW = 2 , PSI_TABLE_DELETE_ROW = 3 }
 IO operation performed on an instrumented table. More...
 
enum  PSI_table_lock_operation { PSI_TABLE_LOCK = 0 , PSI_TABLE_EXTERNAL_LOCK = 1 }
 Lock operation performed on an instrumented table. More...
 

Detailed Description

Performance schema instrumentation interface.