MySQL 8.3.0
Source Code Documentation
mysql_stage.h File Reference

Instrumentation helpers for stages. More...

#include "my_compiler.h"
#include "my_psi_config.h"
#include "mysql/psi/psi_stage.h"
#include "my_inttypes.h"
#include "pfs_stage_provider.h"

Go to the source code of this file.

Macros

#define mysql_stage_register(P1, P2, P3)   inline_mysql_stage_register(P1, P2, P3)
 Stage registration. More...
 
#define MYSQL_SET_STAGE(K, F, L)   inline_mysql_set_stage(K, F, L)
 Set the current stage. More...
 
#define mysql_set_stage(K)   inline_mysql_set_stage(K, __FILE__, __LINE__)
 Set the current stage. More...
 
#define mysql_end_stage   inline_mysql_end_stage
 End the last stage. More...
 
#define mysql_stage_set_work_completed(P1, P2)    inline_mysql_stage_set_work_completed(P1, P2)
 
#define mysql_stage_get_work_completed(P1)    inline_mysql_stage_get_work_completed(P1)
 
#define mysql_stage_inc_work_completed(P1, P2)    inline_mysql_stage_inc_work_completed(P1, P2)
 
#define mysql_stage_set_work_estimated(P1, P2)    inline_mysql_stage_set_work_estimated(P1, P2)
 
#define mysql_stage_get_work_estimated(P1)    inline_mysql_stage_get_work_estimated(P1)
 

Functions

static void inline_mysql_stage_register (const char *category, PSI_stage_info **info, int count)
 
static PSI_stage_progressinline_mysql_set_stage (PSI_stage_key key, const char *src_file, int src_line)
 
static void inline_mysql_end_stage ()
 
static void inline_mysql_stage_set_work_completed (PSI_stage_progress *progress, ulonglong val)
 
static ulonglong inline_mysql_stage_get_work_completed (PSI_stage_progress *progress)
 
static void inline_mysql_stage_inc_work_completed (PSI_stage_progress *progress, ulonglong val)
 
static void inline_mysql_stage_set_work_estimated (PSI_stage_progress *progress, ulonglong val)
 
static ulonglong inline_mysql_stage_get_work_estimated (PSI_stage_progress *progress)
 

Detailed Description

Instrumentation helpers for stages.