41#if defined(MYSQL_SERVER) || defined(PFS_DIRECT_CALL)
46#ifndef PSI_MEMORY_CALL
47#define PSI_MEMORY_CALL(M) psi_memory_service->M
60#define mysql_memory_register(P1, P2, P3) \
61 inline_mysql_memory_register(P1, P2, P3)
67 const char *
category [[maybe_unused]],
void *info [[maybe_unused]],
68 int count [[maybe_unused]])
71#ifdef HAVE_PSI_MEMORY_INTERFACE
76#ifdef HAVE_PSI_MEMORY_INTERFACE
86#define PSI_HEADER_SIZE 32
88#define PSI_MEMORY_MAGIC 1234
90#define PSI_MEM_CNT_BIT ((uint)1 << 31)
91#define PSI_REAL_MEM_KEY(P) ((PSI_memory_key)((P) & ~PSI_MEM_CNT_BIT))
93#define USER_TO_HEADER(P) ((my_memory_header *)(((char *)P) - PSI_HEADER_SIZE))
94#define HEADER_TO_USER(P) (((char *)P) + PSI_HEADER_SIZE)
96#define USER_TO_HEADER_UINT8_T(P) \
97 (((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:63
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:208
static int count
Definition: myisam_ftdump.cc:45
#define PSI_MEMORY_CALL(M)
Definition: mysql_memory.h:47
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