MySQL 9.0.0
Source Code Documentation
|
Classes | |
struct | PSI_memory_info_v1 |
Memory instrument information. More... | |
struct | PSI_memory_bootstrap |
Entry point for the performance schema interface. More... | |
struct | PSI_memory_service_v2 |
Performance Schema Memory Interface, version 2. More... | |
Macros | |
#define | PSI_MEMORY_VERSION_1 1 |
Performance Schema Memory Interface number for version 1. More... | |
#define | PSI_MEMORY_VERSION_2 2 |
Performance Schema Memory Interface number for version 2. More... | |
#define | PSI_CURRENT_MEMORY_VERSION 2 |
Performance Schema Memory Interface number for the most recent version. More... | |
Typedefs | |
typedef unsigned int | PSI_memory_key |
Instrumented memory key. More... | |
typedef struct PSI_memory_info_v1 | PSI_memory_info_v1 |
typedef void(* | register_memory_v1_t) (const char *category, struct PSI_memory_info_v1 *info, int count) |
Memory registration API. More... | |
typedef PSI_memory_key(* | memory_alloc_v1_t) (PSI_memory_key key, size_t size, struct PSI_thread **owner) |
Instrument memory allocation. More... | |
typedef PSI_memory_key(* | memory_realloc_v1_t) (PSI_memory_key key, size_t old_size, size_t new_size, struct PSI_thread **owner) |
Instrument memory re allocation. More... | |
typedef PSI_memory_key(* | memory_claim_v1_t) (PSI_memory_key key, size_t size, struct PSI_thread **owner) |
Instrument memory claim. More... | |
typedef PSI_memory_key(* | memory_claim_v2_t) (PSI_memory_key key, size_t size, struct PSI_thread **owner, bool claim) |
Instrument memory claim. More... | |
typedef void(* | memory_free_v1_t) (PSI_memory_key key, size_t size, struct PSI_thread *owner) |
Instrument memory free. More... | |
typedef struct PSI_memory_info_v1 | PSI_memory_info |
typedef unsigned int | PSI_memory_key |
Instrumented memory key. More... | |
typedef struct PSI_memory_bootstrap | PSI_memory_bootstrap |
typedef struct PSI_memory_service_v2 | PSI_memory_service_t |
Variables | |
MYSQL_PLUGIN_IMPORT PSI_memory_service_t * | psi_memory_service |
#define PSI_CURRENT_MEMORY_VERSION 2 |
Performance Schema Memory Interface number for the most recent version.
The most current version is PSI_MEMORY_VERSION_2
#define PSI_MEMORY_VERSION_1 1 |
Performance Schema Memory Interface number for version 1.
This version is abandoned.
#define PSI_MEMORY_VERSION_2 2 |
Performance Schema Memory Interface number for version 2.
This version is supported.
typedef PSI_memory_key(* memory_alloc_v1_t) (PSI_memory_key key, size_t size, struct PSI_thread **owner) |
Instrument memory allocation.
key | the memory instrument key | |
size | the size of memory allocated | |
[out] | owner | the memory owner |
typedef PSI_memory_key(* memory_claim_v1_t) (PSI_memory_key key, size_t size, struct PSI_thread **owner) |
Instrument memory claim.
key | the memory instrument key | |
size | the size of memory allocated | |
[in,out] | owner | the memory owner |
typedef PSI_memory_key(* memory_claim_v2_t) (PSI_memory_key key, size_t size, struct PSI_thread **owner, bool claim) |
Instrument memory claim.
key | the memory instrument key | |
size | the size of memory allocated | |
[in,out] | owner | the memory owner |
claim | True to claim, false to unclaim |
typedef void(* memory_free_v1_t) (PSI_memory_key key, size_t size, struct PSI_thread *owner) |
Instrument memory free.
key | the memory instrument key |
size | the size of memory allocated |
owner | the memory owner |
typedef PSI_memory_key(* memory_realloc_v1_t) (PSI_memory_key key, size_t old_size, size_t new_size, struct PSI_thread **owner) |
Instrument memory re allocation.
key | the memory instrument key | |
old_size | the size of memory previously allocated | |
new_size | the size of memory re allocated | |
[in,out] | owner | the memory owner |
typedef struct PSI_memory_bootstrap PSI_memory_bootstrap |
typedef struct PSI_memory_info_v1 PSI_memory_info |
typedef struct PSI_memory_info_v1 PSI_memory_info_v1 |
typedef unsigned int PSI_memory_key |
Instrumented memory key.
To instrument memory, a memory key must be obtained using register_memory
. Using a zero key always disable the instrumentation.
typedef unsigned int PSI_memory_key |
Instrumented memory key.
To instrument memory, a memory key must be obtained using register_memory
. Using a zero key always disable the instrumentation.
typedef struct PSI_memory_service_v2 PSI_memory_service_t |
typedef void(* register_memory_v1_t) (const char *category, struct PSI_memory_info_v1 *info, int count) |
Memory registration API.
category | a category name (typically a plugin name) |
info | an array of memory info to register |
count | the size of the info array |
|
extern |