MySQL 8.0.29
Source Code Documentation
psi_memory_service.h
Go to the documentation of this file.
1/* Copyright (c) 2017, 2022, Oracle and/or its affiliates.
2
3This program is free software; you can redistribute it and/or modify
4it under the terms of the GNU General Public License, version 2.0,
5as published by the Free Software Foundation.
6
7This program is also distributed with certain software (including
8but not limited to OpenSSL) that is licensed under separate terms,
9as designated in a particular file or component or in included license
10documentation. The authors of MySQL hereby grant you an additional
11permission to link the program and your derivative works with the
12separately licensed software that they have included with MySQL.
13
14This program is distributed in the hope that it will be useful,
15but WITHOUT ANY WARRANTY; without even the implied warranty of
16MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17GNU General Public License, version 2.0, for more details.
18
19You should have received a copy of the GNU General Public License
20along with this program; if not, write to the Free Software
21Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */
22
23#ifndef COMPONENTS_SERVICES_PSI_MEMORY_SERVICE_H
24#define COMPONENTS_SERVICES_PSI_MEMORY_SERVICE_H
25
28
29/*
30 Version 1.
31 Introduced in MySQL 8.0.3
32 Abandoned in MySQL 8.0.22
33 Status: Removed, use version 2 instead.
34*/
35
36/*
37 Version 2.
38 Introduced in MySQL 8.0.22
39 Status: active
40*/
41
43/** @sa register_memory_v1_t. */
44register_memory_v1_t register_memory;
45/** @sa memory_alloc_v1_t. */
46memory_alloc_v1_t memory_alloc;
47/** @sa memory_realloc_v1_t. */
48memory_realloc_v1_t memory_realloc;
49/** @sa memory_claim_v2_t. */
50memory_claim_v2_t memory_claim;
51/** @sa memory_free_v1_t. */
52memory_free_v1_t memory_free;
54
55#endif /* COMPONENTS_SERVICES_PSI_MEMORY_SERVICE_H */
PSI_memory_key(* memory_claim_v2_t)(PSI_memory_key key, size_t size, struct PSI_thread **owner, bool claim)
Instrument memory claim.
Definition: psi_memory_bits.h:124
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.
Definition: psi_memory_bits.h:102
PSI_memory_key(* memory_alloc_v1_t)(PSI_memory_key key, size_t size, struct PSI_thread **owner)
Instrument memory allocation.
Definition: psi_memory_bits.h:91
void(* register_memory_v1_t)(const char *category, struct PSI_memory_info_v1 *info, int count)
Memory registration API.
Definition: psi_memory_bits.h:80
void(* memory_free_v1_t)(PSI_memory_key key, size_t size, struct PSI_thread *owner)
Instrument memory free.
Definition: psi_memory_bits.h:134
Performance schema instrumentation interface.
#define END_SERVICE_DEFINITION(name)
A macro to end the last Service definition started with the BEGIN_SERVICE_DEFINITION macro.
Definition: service.h:90
#define BEGIN_SERVICE_DEFINITION(name)
Declares a new Service.
Definition: service.h:85