40#if defined(MYSQL_SERVER) || defined(PFS_DIRECT_CALL)
45#ifndef PSI_MEMORY_CALL
46#define PSI_MEMORY_CALL(M) psi_memory_service->M
59#define mysql_memory_register(P1, P2, P3) \
60 inline_mysql_memory_register(P1, P2, P3)
66 const char *
category [[maybe_unused]],
void *
info [[maybe_unused]],
67 int count [[maybe_unused]])
70#ifdef HAVE_PSI_MEMORY_INTERFACE
75#ifdef HAVE_PSI_MEMORY_INTERFACE
85#define PSI_HEADER_SIZE 32
87#define PSI_MEMORY_MAGIC 1234
89#define PSI_MEM_CNT_BIT ((uint)1 << 31)
90#define PSI_REAL_MEM_KEY(P) ((PSI_memory_key)((P) & ~PSI_MEM_CNT_BIT))
92#define USER_TO_HEADER(P) ((my_memory_header *)(((char *)P) - PSI_HEADER_SIZE))
93#define HEADER_TO_USER(P) (((char *)P) + PSI_HEADER_SIZE)
95#define USER_TO_HEADER_UINT8_T(P) \
96 (((static_cast<uint8_t *>(P)) - PSI_HEADER_SIZE))
unsigned int PSI_memory_key
Instrumented memory key.
Definition: psi_memory_bits.h:49
struct PSI_thread PSI_thread
Definition: psi_thread_bits.h:82
static void inline_mysql_memory_register(const char *category, PSI_memory_info *info, int count)
Definition: mysql_memory.h:62
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:207
static int count
Definition: myisam_ftdump.cc:43
#define PSI_MEMORY_CALL(M)
Definition: mysql_memory.h:46
static void register_memory(const char *, PSI_memory_info *, int)
Definition: psi_memory_v2_empty.cc:33
static const char * category
Definition: sha2_password.cc:170
Performance schema instrumentation (declarations).
Performance schema instrumentation interface.
Memory instrument information.
Definition: psi_memory_bits.h:58
unsigned int uint
Definition: uca9-dump.cc:75