41#if defined(MYSQL_SERVER) || defined(PFS_DIRECT_CALL)
47#define PSI_STAGE_CALL(M) psi_stage_service->M
60#define mysql_stage_register(P1, P2, P3) inline_mysql_stage_register(P1, P2, P3)
72#define MYSQL_SET_STAGE(K, F, L) inline_mysql_set_stage(K, F, L)
80#define mysql_set_stage(K) inline_mysql_set_stage(K, __FILE__, __LINE__)
86#define mysql_end_stage inline_mysql_end_stage
92 int count [[maybe_unused]]) {
93#ifdef HAVE_PSI_STAGE_INTERFACE
100 int src_line [[maybe_unused]]) {
101#ifdef HAVE_PSI_STAGE_INTERFACE
109#ifdef HAVE_PSI_STAGE_INTERFACE
114#ifdef HAVE_PSI_STAGE_INTERFACE
115#define mysql_stage_set_work_completed(P1, P2) \
116 inline_mysql_stage_set_work_completed(P1, P2)
118#define mysql_stage_get_work_completed(P1) \
119 inline_mysql_stage_get_work_completed(P1)
121#define mysql_stage_set_work_completed(P1, P2) \
125#define mysql_stage_get_work_completed(P1) \
130#ifdef HAVE_PSI_STAGE_INTERFACE
131#define mysql_stage_inc_work_completed(P1, P2) \
132 inline_mysql_stage_inc_work_completed(P1, P2)
134#define mysql_stage_inc_work_completed(P1, P2) \
139#ifdef HAVE_PSI_STAGE_INTERFACE
140#define mysql_stage_set_work_estimated(P1, P2) \
141 inline_mysql_stage_set_work_estimated(P1, P2)
143#define mysql_stage_get_work_estimated(P1) \
144 inline_mysql_stage_get_work_estimated(P1)
146#define mysql_stage_set_work_estimated(P1, P2) \
150#define mysql_stage_get_work_estimated(P1) \
155#ifdef HAVE_PSI_STAGE_INTERFACE
158 if (progress !=
nullptr) {
169#ifdef HAVE_PSI_STAGE_INTERFACE
172 if (progress !=
nullptr) {
178#ifdef HAVE_PSI_STAGE_INTERFACE
181 if (progress !=
nullptr) {
#define PSI_STAGE_CALL(M)
Definition: psi_stage.h:36
unsigned int PSI_stage_key
Instrumented stage key.
Definition: psi_stage_bits.h:43
static void inline_mysql_stage_set_work_completed(PSI_stage_progress *progress, ulonglong val)
Definition: mysql_stage.h:156
static void inline_mysql_end_stage()
Definition: mysql_stage.h:108
static ulonglong inline_mysql_stage_get_work_completed(PSI_stage_progress *progress)
Definition: mysql_stage.h:163
static void inline_mysql_stage_inc_work_completed(PSI_stage_progress *progress, ulonglong val)
Definition: mysql_stage.h:170
static PSI_stage_progress * inline_mysql_set_stage(PSI_stage_key key, const char *src_file, int src_line)
Definition: mysql_stage.h:98
static void inline_mysql_stage_register(const char *category, PSI_stage_info **info, int count)
Definition: mysql_stage.h:88
static void inline_mysql_stage_set_work_estimated(PSI_stage_progress *progress, ulonglong val)
Definition: mysql_stage.h:179
static ulonglong inline_mysql_stage_get_work_estimated(PSI_stage_progress *progress)
Definition: mysql_stage.h:186
Header for compiler-dependent features.
Some integer typedefs for easier portability.
unsigned long long int ulonglong
Definition: my_inttypes.h:56
Defines various enable/disable and HAVE_ macros related to the performance schema instrumentation sys...
static int count
Definition: myisam_ftdump.cc:43
static const char * category
Definition: sha2_password.cc:170
Performance schema instrumentation (declarations).
Performance schema instrumentation interface.
required string key
Definition: replication_asynchronous_connection_failover.proto:60
Stage instrument information.
Definition: psi_stage_bits.h:74
Interface for an instrumented stage progress.
Definition: psi_stage_bits.h:63
unsigned long long m_work_estimated
Definition: psi_stage_bits.h:65
unsigned long long m_work_completed
Definition: psi_stage_bits.h:64