MySQL 9.1.0
Source Code Documentation
Collaboration diagram for Idle Instrumentation (ABI):

Classes

struct  PSI_idle_locker_state_v1
 State data storage for start_idle_wait_v1_t. More...
 
struct  PSI_idle_bootstrap
 Entry point for the performance schema interface. More...
 
struct  PSI_idle_service_v1
 Performance Schema Idle Interface, version 1. More...
 

Macros

#define PSI_IDLE_VERSION_1   1
 Performance Schema Idle Interface number for version 1. More...
 
#define PSI_CURRENT_IDLE_VERSION   1
 Performance Schema Idle Interface number for the most recent version. More...
 

Typedefs

typedef struct PSI_idle_locker PSI_idle_locker
 
typedef struct PSI_idle_locker_state_v1 PSI_idle_locker_state_v1
 
typedef struct PSI_idle_locker *(* start_idle_wait_v1_t) (struct PSI_idle_locker_state_v1 *state, const char *src_file, unsigned int src_line)
 Record an idle instrumentation wait start event. More...
 
typedef void(* end_idle_wait_v1_t) (struct PSI_idle_locker *locker)
 Record an idle instrumentation wait end event. More...
 
typedef struct PSI_idle_locker_state_v1 PSI_idle_locker_state
 
typedef struct PSI_idle_bootstrap PSI_idle_bootstrap
 
typedef struct PSI_idle_service_v1 PSI_idle_service_t
 

Variables

MYSQL_PLUGIN_IMPORT PSI_idle_service_tpsi_idle_service
 

Detailed Description

Macro Definition Documentation

◆ PSI_CURRENT_IDLE_VERSION

#define PSI_CURRENT_IDLE_VERSION   1

Performance Schema Idle Interface number for the most recent version.

The most current version is PSI_IDLE_VERSION_1

◆ PSI_IDLE_VERSION_1

#define PSI_IDLE_VERSION_1   1

Performance Schema Idle Interface number for version 1.

This version is supported.

Typedef Documentation

◆ end_idle_wait_v1_t

typedef void(* end_idle_wait_v1_t) (struct PSI_idle_locker *locker)

Record an idle instrumentation wait end event.

Parameters
lockera thread locker for the running thread

◆ PSI_idle_bootstrap

◆ PSI_idle_locker

◆ PSI_idle_locker_state

◆ PSI_idle_locker_state_v1

◆ PSI_idle_service_t

◆ start_idle_wait_v1_t

typedef struct PSI_idle_locker *(* start_idle_wait_v1_t) (struct PSI_idle_locker_state_v1 *state, const char *src_file, unsigned int src_line)

Record an idle instrumentation wait start event.

Parameters
statedata storage for the locker
src_filethe source file name
src_linethe source line number
Returns
an idle locker, or NULL

Variable Documentation

◆ psi_idle_service

MYSQL_PLUGIN_IMPORT PSI_idle_service_t* psi_idle_service
extern