40#if defined(MYSQL_SERVER) || defined(PFS_DIRECT_CALL)
46#define PSI_STAGE_CALL(M) psi_stage_service->M
59#define mysql_stage_register(P1, P2, P3) inline_mysql_stage_register(P1, P2, P3)
71#define MYSQL_SET_STAGE(K, F, L) inline_mysql_set_stage(K, F, L)
79#define mysql_set_stage(K) inline_mysql_set_stage(K, __FILE__, __LINE__)
85#define mysql_end_stage inline_mysql_end_stage
91 int count [[maybe_unused]]) {
92#ifdef HAVE_PSI_STAGE_INTERFACE
99 int src_line [[maybe_unused]]) {
100#ifdef HAVE_PSI_STAGE_INTERFACE
108#ifdef HAVE_PSI_STAGE_INTERFACE
113#ifdef HAVE_PSI_STAGE_INTERFACE
114#define mysql_stage_set_work_completed(P1, P2) \
115 inline_mysql_stage_set_work_completed(P1, P2)
117#define mysql_stage_get_work_completed(P1) \
118 inline_mysql_stage_get_work_completed(P1)
120#define mysql_stage_set_work_completed(P1, P2) \
124#define mysql_stage_get_work_completed(P1) \
129#ifdef HAVE_PSI_STAGE_INTERFACE
130#define mysql_stage_inc_work_completed(P1, P2) \
131 inline_mysql_stage_inc_work_completed(P1, P2)
133#define mysql_stage_inc_work_completed(P1, P2) \
138#ifdef HAVE_PSI_STAGE_INTERFACE
139#define mysql_stage_set_work_estimated(P1, P2) \
140 inline_mysql_stage_set_work_estimated(P1, P2)
142#define mysql_stage_get_work_estimated(P1) \
143 inline_mysql_stage_get_work_estimated(P1)
145#define mysql_stage_set_work_estimated(P1, P2) \
149#define mysql_stage_get_work_estimated(P1) \
154#ifdef HAVE_PSI_STAGE_INTERFACE
157 if (progress !=
nullptr) {
168#ifdef HAVE_PSI_STAGE_INTERFACE
171 if (progress !=
nullptr) {
177#ifdef HAVE_PSI_STAGE_INTERFACE
180 if (progress !=
nullptr) {
#define PSI_STAGE_CALL(M)
Definition: psi_stage.h:35
unsigned int PSI_stage_key
Instrumented stage key.
Definition: psi_stage_bits.h:42
static void inline_mysql_stage_set_work_completed(PSI_stage_progress *progress, ulonglong val)
Definition: mysql_stage.h:155
static void inline_mysql_end_stage()
Definition: mysql_stage.h:107
static ulonglong inline_mysql_stage_get_work_completed(PSI_stage_progress *progress)
Definition: mysql_stage.h:162
static void inline_mysql_stage_inc_work_completed(PSI_stage_progress *progress, ulonglong val)
Definition: mysql_stage.h:169
static PSI_stage_progress * inline_mysql_set_stage(PSI_stage_key key, const char *src_file, int src_line)
Definition: mysql_stage.h:97
static void inline_mysql_stage_register(const char *category, PSI_stage_info **info, int count)
Definition: mysql_stage.h:87
static void inline_mysql_stage_set_work_estimated(PSI_stage_progress *progress, ulonglong val)
Definition: mysql_stage.h:178
static ulonglong inline_mysql_stage_get_work_estimated(PSI_stage_progress *progress)
Definition: mysql_stage.h:185
Header for compiler-dependent features.
Some integer typedefs for easier portability.
unsigned long long int ulonglong
Definition: my_inttypes.h:55
Defines various enable/disable and HAVE_ macros related to the performance schema instrumentation sys...
static int count
Definition: myisam_ftdump.cc:42
static const char * category
Definition: sha2_password.cc:169
Performance schema instrumentation (declarations).
Performance schema instrumentation interface.
required string key
Definition: replication_asynchronous_connection_failover.proto:59
Stage instrument information.
Definition: psi_stage_bits.h:73
Interface for an instrumented stage progress.
Definition: psi_stage_bits.h:62
unsigned long long m_work_estimated
Definition: psi_stage_bits.h:64
unsigned long long m_work_completed
Definition: psi_stage_bits.h:63