MySQL 8.0.39
Source Code Documentation
pfs_builtin_memory.h
Go to the documentation of this file.
1/* Copyright (c) 2014, 2024, Oracle and/or its affiliates.
2
3 This program is free software; you can redistribute it and/or modify
4 it under the terms of the GNU General Public License, version 2.0,
5 as published by the Free Software Foundation.
6
7 This program is designed to work with certain software (including
8 but not limited to OpenSSL) that is licensed under separate terms,
9 as designated in a particular file or component or in included license
10 documentation. The authors of MySQL hereby grant you an additional
11 permission to link the program and your derivative works with the
12 separately licensed software that they have either included with
13 the program or referenced in the documentation.
14
15 This program is distributed in the hope that it will be useful,
16 but WITHOUT ANY WARRANTY; without even the implied warranty of
17 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 GNU General Public License, version 2.0, for more details.
19
20 You should have received a copy of the GNU General Public License
21 along with this program; if not, write to the Free Software
22 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */
23
24#ifndef PFS_BUILTIN_MEMORY_H
25#define PFS_BUILTIN_MEMORY_H
26
27#include <sys/types.h>
28
31
32/**
33 @file storage/perfschema/pfs_builtin_memory.h
34 Performance schema instruments metadata (declarations).
35*/
36
38
42
43 inline void count_alloc(size_t size) { m_stat.count_builtin_alloc(size); }
44
45 inline void count_free(size_t size) { m_stat.count_builtin_free(size); }
46};
47
49
51
59
67
72
80
88
100
108
118
121
125
132
137
140
142
144
145#endif
void count_builtin_free(size_t size)
Definition: pfs_stat.cc:199
void count_builtin_alloc(size_t size)
Definition: pfs_stat.cc:172
PFS_builtin_memory_class builtin_memory_user
Definition: pfs_builtin_memory.cc:83
PFS_builtin_memory_class builtin_memory_thread_stages_history
Definition: pfs_builtin_memory.cc:73
PFS_builtin_memory_class builtin_memory_host_stages
Definition: pfs_builtin_memory.cc:58
PFS_builtin_memory_class builtin_memory_global_errors
Definition: pfs_builtin_memory.cc:54
PFS_builtin_memory_class builtin_memory_scalable_buffer
Definition: pfs_builtin_memory.cc:123
PFS_builtin_memory_class builtin_memory_user_errors
Definition: pfs_builtin_memory.cc:88
PFS_builtin_memory_class builtin_memory_thread_statements_stack_sqltext
Definition: pfs_builtin_memory.cc:79
PFS_builtin_memory_class builtin_memory_table_share_lock
Definition: pfs_buffer_container.cc:89
PFS_builtin_memory_class builtin_memory_global_statements
Definition: pfs_builtin_memory.cc:52
PFS_builtin_memory_class builtin_memory_waits_history_long
Definition: pfs_builtin_memory.cc:113
PFS_builtin_memory_class builtin_memory_cond_class
Definition: pfs_builtin_memory.cc:93
PFS_builtin_memory_class builtin_memory_table
Definition: pfs_buffer_container.cc:74
PFS_builtin_memory_class builtin_memory_statements_history_long_tokens
Definition: pfs_builtin_memory.cc:110
PFS_builtin_memory_class builtin_memory_stage_class
Definition: pfs_builtin_memory.cc:97
PFS_builtin_memory_class builtin_memory_account_waits
Definition: pfs_builtin_memory.cc:44
PFS_builtin_memory_class builtin_memory_user_memory
Definition: pfs_builtin_memory.cc:89
PFS_builtin_memory_class builtin_memory_thread_statements_history_sqltext
Definition: pfs_builtin_memory.cc:76
PFS_builtin_memory_class builtin_memory_rwlock_class
Definition: pfs_builtin_memory.cc:92
PFS_builtin_memory_class builtin_memory_thread_waits_history
Definition: pfs_builtin_memory.cc:72
PFS_builtin_memory_class builtin_memory_user_waits
Definition: pfs_builtin_memory.cc:84
PFS_builtin_memory_class builtin_memory_user_statements
Definition: pfs_builtin_memory.cc:86
PFS_builtin_memory_class builtin_memory_host_errors
Definition: pfs_builtin_memory.cc:61
PFS_builtin_memory_class builtin_memory_statements_history_long
Definition: pfs_builtin_memory.cc:109
PFS_builtin_memory_class builtin_memory_socket_class
Definition: pfs_builtin_memory.cc:96
PFS_builtin_memory_class builtin_memory_mutex_class
Definition: pfs_builtin_memory.cc:91
PFS_builtin_memory_class builtin_memory_thread_waits
Definition: pfs_builtin_memory.cc:65
PFS_builtin_memory_class builtin_memory_digest_sample_sqltext
Definition: pfs_builtin_memory.cc:106
PFS_builtin_memory_class builtin_memory_memory_class
Definition: pfs_builtin_memory.cc:99
PFS_builtin_memory_class builtin_memory_transactions_history_long
Definition: pfs_builtin_memory.cc:112
PFS_builtin_memory_class builtin_memory_account_memory
Definition: pfs_builtin_memory.cc:49
PFS_builtin_memory_class builtin_memory_thread_transactions
Definition: pfs_builtin_memory.cc:68
PFS_builtin_memory_class builtin_memory_cond
Definition: pfs_buffer_container.cc:48
PFS_builtin_memory_class builtin_memory_thread_statements
Definition: pfs_builtin_memory.cc:67
PFS_builtin_memory_class builtin_memory_socket
Definition: pfs_buffer_container.cc:56
PFS_builtin_memory_class builtin_memory_mutex
Definition: pfs_buffer_container.cc:40
PFS_builtin_memory_class builtin_memory_account_errors
Definition: pfs_builtin_memory.cc:48
PFS_builtin_memory_class builtin_memory_file
Definition: pfs_buffer_container.cc:52
PFS_builtin_memory_class builtin_memory_stages_history_long
Definition: pfs_builtin_memory.cc:108
PFS_builtin_memory_class builtin_memory_thread_class
Definition: pfs_builtin_memory.cc:94
PFS_builtin_memory_class builtin_memory_account_statements
Definition: pfs_builtin_memory.cc:46
PFS_builtin_memory_class builtin_memory_program
Definition: pfs_buffer_container.cc:93
PFS_builtin_memory_class * find_builtin_memory_class(PFS_builtin_memory_key)
Definition: pfs_builtin_memory.cc:503
PFS_builtin_memory_class builtin_memory_user_stages
Definition: pfs_builtin_memory.cc:85
PFS_builtin_memory_class builtin_memory_thread_errors
Definition: pfs_builtin_memory.cc:69
PFS_builtin_memory_class builtin_memory_table_share_index
Definition: pfs_buffer_container.cc:84
PFS_builtin_memory_class builtin_memory_global_memory
Definition: pfs_builtin_memory.cc:53
PFS_builtin_memory_class builtin_memory_setup_actor
Definition: pfs_buffer_container.cc:64
PFS_builtin_memory_class builtin_memory_thread
Definition: pfs_builtin_memory.cc:64
PFS_builtin_memory_class builtin_memory_mdl
Definition: pfs_buffer_container.cc:60
PFS_builtin_memory_class builtin_memory_host_transactions
Definition: pfs_builtin_memory.cc:60
PFS_builtin_memory_class builtin_memory_file_class
Definition: pfs_builtin_memory.cc:95
PFS_builtin_memory_class builtin_memory_account_transactions
Definition: pfs_builtin_memory.cc:47
PFS_builtin_memory_class builtin_memory_data_container
Definition: pfs_builtin_memory.cc:125
PFS_builtin_memory_class builtin_memory_thread_statements_history
Definition: pfs_builtin_memory.cc:74
PFS_builtin_memory_class builtin_memory_thread_session_connect_attrs
Definition: pfs_builtin_memory.cc:81
PFS_builtin_memory_class builtin_memory_host_waits
Definition: pfs_builtin_memory.cc:57
PFS_builtin_memory_class builtin_memory_thread_transaction_history
Definition: pfs_builtin_memory.cc:80
uint PFS_builtin_memory_key
Definition: pfs_builtin_memory.h:37
PFS_builtin_memory_class builtin_memory_table_share
Definition: pfs_buffer_container.cc:78
PFS_builtin_memory_class builtin_memory_statement_class
Definition: pfs_builtin_memory.cc:98
PFS_builtin_memory_class builtin_memory_user_transactions
Definition: pfs_builtin_memory.cc:87
PFS_builtin_memory_class builtin_memory_thread_memory
Definition: pfs_builtin_memory.cc:70
PFS_builtin_memory_class builtin_memory_host_memory
Definition: pfs_builtin_memory.cc:62
PFS_builtin_memory_class builtin_memory_thread_statements_stack
Definition: pfs_builtin_memory.cc:77
PFS_builtin_memory_class builtin_memory_account_stages
Definition: pfs_builtin_memory.cc:45
PFS_builtin_memory_class builtin_memory_digest
Definition: pfs_builtin_memory.cc:104
PFS_builtin_memory_class builtin_memory_account
Definition: pfs_builtin_memory.cc:43
PFS_builtin_memory_class builtin_memory_digest_tokens
Definition: pfs_builtin_memory.cc:105
PFS_builtin_memory_class builtin_memory_host_statements
Definition: pfs_builtin_memory.cc:59
PFS_builtin_memory_class builtin_memory_global_stages
Definition: pfs_builtin_memory.cc:51
PFS_builtin_memory_class builtin_memory_statements_history_long_sqltext
Definition: pfs_builtin_memory.cc:111
PFS_builtin_memory_class builtin_memory_host
Definition: pfs_builtin_memory.cc:56
PFS_builtin_memory_class builtin_memory_thread_statements_history_tokens
Definition: pfs_builtin_memory.cc:75
PFS_builtin_memory_class builtin_memory_file_handle
Definition: pfs_builtin_memory.cc:41
PFS_builtin_memory_class builtin_memory_prepared_stmt
Definition: pfs_buffer_container.cc:97
void init_all_builtin_memory_class()
Definition: pfs_builtin_memory.cc:168
PFS_builtin_memory_class builtin_memory_thread_statements_stack_tokens
Definition: pfs_builtin_memory.cc:78
PFS_builtin_memory_class builtin_memory_thread_stages
Definition: pfs_builtin_memory.cc:66
PFS_builtin_memory_class builtin_memory_rwlock
Definition: pfs_buffer_container.cc:44
PFS_builtin_memory_class builtin_memory_setup_object
Definition: pfs_buffer_container.cc:69
Miscellaneous global dependencies (declarations).
Performance schema instruments metadata (declarations).
Definition: pfs_builtin_memory.h:39
void count_alloc(size_t size)
Definition: pfs_builtin_memory.h:43
void count_free(size_t size)
Definition: pfs_builtin_memory.h:45
PFS_memory_shared_stat m_stat
Definition: pfs_builtin_memory.h:41
PFS_memory_class m_class
Definition: pfs_builtin_memory.h:40
Instrumentation metadata for a memory.
Definition: pfs_instr_class.h:577
Definition: pfs_stat.h:937
unsigned int uint
Definition: uca9-dump.cc:75