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

Classes

struct  PSI_stage_progress_v1
 Interface for an instrumented stage progress. More...
 
struct  PSI_stage_info_v1
 Stage instrument information. More...
 
struct  PSI_stage_bootstrap
 Entry point for the performance schema interface. More...
 
struct  PSI_stage_service_v1
 Performance Schema Stage Interface, version 1. More...
 

Macros

#define PSI_STAGE_VERSION_1   1
 Performance Schema Stage Interface number for version 1. More...
 
#define PSI_CURRENT_STAGE_VERSION   1
 Performance Schema Stage Interface number for the most recent version. More...
 

Typedefs

typedef unsigned int PSI_stage_key
 Instrumented stage key. More...
 
typedef struct PSI_stage_progress_v1 PSI_stage_progress_v1
 
typedef struct PSI_stage_info_v1 PSI_stage_info_v1
 
typedef void(* register_stage_v1_t) (const char *category, struct PSI_stage_info_v1 **info, int count)
 Stage registration API. More...
 
typedef PSI_stage_progress_v1 *(* start_stage_v1_t) (PSI_stage_key key, const char *src_file, int src_line)
 Start a new stage, and implicitly end the previous stage. More...
 
typedef PSI_stage_progress_v1 *(* get_current_stage_progress_v1_t) (void)
 Get the current stage progress. More...
 
typedef void(* end_stage_v1_t) (void)
 End the current stage. More...
 
typedef struct PSI_stage_info_v1 PSI_stage_info
 
typedef struct PSI_stage_progress_v1 PSI_stage_progress
 
typedef struct PSI_stage_service_v1 PSI_stage_service_t
 

Variables

MYSQL_PLUGIN_IMPORT PSI_stage_service_tpsi_stage_service
 

Detailed Description

Macro Definition Documentation

◆ PSI_CURRENT_STAGE_VERSION

#define PSI_CURRENT_STAGE_VERSION   1

Performance Schema Stage Interface number for the most recent version.

The most current version is PSI_STAGE_VERSION_1

◆ PSI_STAGE_VERSION_1

#define PSI_STAGE_VERSION_1   1

Performance Schema Stage Interface number for version 1.

This version is supported.

Typedef Documentation

◆ end_stage_v1_t

typedef void(* end_stage_v1_t) (void)

End the current stage.

◆ get_current_stage_progress_v1_t

typedef PSI_stage_progress_v1 *(* get_current_stage_progress_v1_t) (void)

Get the current stage progress.

Returns
the stage progress

◆ PSI_stage_info

◆ PSI_stage_info_v1

◆ PSI_stage_key

typedef unsigned int PSI_stage_key

Instrumented stage key.

To instrument a stage, a stage key must be obtained using register_stage. Using a zero key always disable the instrumentation.

◆ PSI_stage_progress

◆ PSI_stage_progress_v1

◆ PSI_stage_service_t

◆ register_stage_v1_t

typedef void(* register_stage_v1_t) (const char *category, struct PSI_stage_info_v1 **info, int count)

Stage registration API.

Parameters
categorya category name
infoan array of stage info to register
countthe size of the info array

◆ start_stage_v1_t

typedef PSI_stage_progress_v1 *(* start_stage_v1_t) (PSI_stage_key key, const char *src_file, int src_line)

Start a new stage, and implicitly end the previous stage.

Parameters
keythe key of the new stage
src_filethe source file name
src_linethe source line number
Returns
the new stage progress

Variable Documentation

◆ psi_stage_service

MYSQL_PLUGIN_IMPORT PSI_stage_service_t* psi_stage_service
extern