39#if defined(MYSQL_SERVER) || defined(PFS_DIRECT_CALL)
44#ifndef PSI_MEMORY_CALL
45#define PSI_MEMORY_CALL(M) psi_memory_service->M
58#define mysql_memory_register(P1, P2, P3) \
59 inline_mysql_memory_register(P1, P2, P3)
65 const char *
category [[maybe_unused]],
void *
info [[maybe_unused]],
66 int count [[maybe_unused]])
69#ifdef HAVE_PSI_MEMORY_INTERFACE
74#ifdef HAVE_PSI_MEMORY_INTERFACE
84#define PSI_HEADER_SIZE 32
86#define PSI_MEMORY_MAGIC 1234
88#define PSI_MEM_CNT_BIT ((uint)1 << 31)
89#define PSI_REAL_MEM_KEY(P) ((PSI_memory_key)((P) & ~PSI_MEM_CNT_BIT))
91#define USER_TO_HEADER(P) ((my_memory_header *)(((char *)P) - PSI_HEADER_SIZE))
92#define HEADER_TO_USER(P) (((char *)P) + PSI_HEADER_SIZE)
94#define USER_TO_HEADER_UINT8_T(P) \
95 (((static_cast<uint8_t *>(P)) - PSI_HEADER_SIZE))
unsigned int PSI_memory_key
Instrumented memory key.
Definition: psi_memory_bits.h:48
struct PSI_thread PSI_thread
Definition: psi_thread_bits.h:81
static void inline_mysql_memory_register(const char *category, PSI_memory_info *info, int count)
Definition: mysql_memory.h:61
Header for compiler-dependent features.
Some integer typedefs for easier portability.
Defines various enable/disable and HAVE_ macros related to the performance schema instrumentation sys...
#define HAVE_PSI_MEMORY_INTERFACE
Definition: my_psi_config.h:205
static int count
Definition: myisam_ftdump.cc:42
#define PSI_MEMORY_CALL(M)
Definition: mysql_memory.h:45
static const char * category
Definition: sha2_password.cc:169
Performance schema instrumentation (declarations).
Performance schema instrumentation interface.
Memory instrument information.
Definition: psi_memory_bits.h:57
unsigned int uint
Definition: uca-dump.cc:29