![]() |
MySQL 8.0.43
Source Code Documentation
|
Classes | |
| struct | my_memory_header |
Macros | |
| #define | mysql_memory_register(P1, P2, P3) inline_mysql_memory_register(P1, P2, P3) |
| Memory registration. More... | |
| #define | PSI_HEADER_SIZE 32 |
| #define | PSI_MEMORY_MAGIC 1234 |
| #define | PSI_MEM_CNT_BIT ((uint)1 << 31) |
| #define | PSI_REAL_MEM_KEY(P) ((PSI_memory_key)((P) & ~PSI_MEM_CNT_BIT)) |
| #define | USER_TO_HEADER(P) ((my_memory_header *)(((char *)P) - PSI_HEADER_SIZE)) |
| #define | HEADER_TO_USER(P) (((char *)P) + PSI_HEADER_SIZE) |
| #define | USER_TO_HEADER_UINT8_T(P) (((static_cast<uint8_t *>(P)) - PSI_HEADER_SIZE)) |
Typedefs | |
| typedef struct my_memory_header | my_memory_header |
Functions | |
| static void | inline_mysql_memory_register (const char *category, PSI_memory_info *info, int count) |
| #define HEADER_TO_USER | ( | P | ) | (((char *)P) + PSI_HEADER_SIZE) |
| #define mysql_memory_register | ( | P1, | |
| P2, | |||
| P3 | |||
| ) | inline_mysql_memory_register(P1, P2, P3) |
Memory registration.
| #define PSI_HEADER_SIZE 32 |
| #define PSI_MEM_CNT_BIT ((uint)1 << 31) |
| #define PSI_MEMORY_MAGIC 1234 |
| #define PSI_REAL_MEM_KEY | ( | P | ) | ((PSI_memory_key)((P) & ~PSI_MEM_CNT_BIT)) |
| #define USER_TO_HEADER | ( | P | ) | ((my_memory_header *)(((char *)P) - PSI_HEADER_SIZE)) |
| #define USER_TO_HEADER_UINT8_T | ( | P | ) | (((static_cast<uint8_t *>(P)) - PSI_HEADER_SIZE)) |
| typedef struct my_memory_header my_memory_header |
|
inlinestatic |