MySQL 8.0.29
Source Code Documentation
pfs_builtin_memory.h
Go to the documentation of this file.
1/* Copyright (c) 2014, 2022, 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 also distributed 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 included with MySQL.
13
14 This program is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 GNU General Public License, version 2.0, for more details.
18
19 You should have received a copy of the GNU General Public License
20 along with this program; if not, write to the Free Software
21 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */
22
23#ifndef PFS_BUILTIN_MEMORY_H
24#define PFS_BUILTIN_MEMORY_H
25
26#include <sys/types.h>
27
30
31/**
32 @file storage/perfschema/pfs_builtin_memory.h
33 Performance schema instruments metadata (declarations).
34*/
35
37
41
42 inline void count_alloc(size_t size) { m_stat.count_builtin_alloc(size); }
43
44 inline void count_free(size_t size) { m_stat.count_builtin_free(size); }
45};
46
48
50
58
66
71
79
87
99
107
117
120
124
131
136
139
141
142#endif
void count_builtin_free(size_t size)
Definition: pfs_stat.cc:200
void count_builtin_alloc(size_t size)
Definition: pfs_stat.cc:171
PFS_builtin_memory_class builtin_memory_user
Definition: pfs_builtin_memory.cc:82
PFS_builtin_memory_class builtin_memory_thread_stages_history
Definition: pfs_builtin_memory.cc:72
PFS_builtin_memory_class builtin_memory_host_stages
Definition: pfs_builtin_memory.cc:57
PFS_builtin_memory_class builtin_memory_global_errors
Definition: pfs_builtin_memory.cc:53
PFS_builtin_memory_class builtin_memory_scalable_buffer
Definition: pfs_builtin_memory.cc:122
PFS_builtin_memory_class builtin_memory_user_errors
Definition: pfs_builtin_memory.cc:87
PFS_builtin_memory_class builtin_memory_thread_statements_stack_sqltext
Definition: pfs_builtin_memory.cc:78
PFS_builtin_memory_class builtin_memory_table_share_lock
Definition: pfs_buffer_container.cc:88
PFS_builtin_memory_class builtin_memory_global_statements
Definition: pfs_builtin_memory.cc:51
PFS_builtin_memory_class builtin_memory_waits_history_long
Definition: pfs_builtin_memory.cc:112
PFS_builtin_memory_class builtin_memory_cond_class
Definition: pfs_builtin_memory.cc:92
PFS_builtin_memory_class builtin_memory_table
Definition: pfs_buffer_container.cc:73
PFS_builtin_memory_class builtin_memory_statements_history_long_tokens
Definition: pfs_builtin_memory.cc:109
PFS_builtin_memory_class builtin_memory_stage_class
Definition: pfs_builtin_memory.cc:96
PFS_builtin_memory_class builtin_memory_account_waits
Definition: pfs_builtin_memory.cc:43
PFS_builtin_memory_class builtin_memory_user_memory
Definition: pfs_builtin_memory.cc:88
PFS_builtin_memory_class builtin_memory_thread_statements_history_sqltext
Definition: pfs_builtin_memory.cc:75
PFS_builtin_memory_class builtin_memory_rwlock_class
Definition: pfs_builtin_memory.cc:91
PFS_builtin_memory_class builtin_memory_thread_waits_history
Definition: pfs_builtin_memory.cc:71
PFS_builtin_memory_class builtin_memory_user_waits
Definition: pfs_builtin_memory.cc:83
PFS_builtin_memory_class builtin_memory_user_statements
Definition: pfs_builtin_memory.cc:85
PFS_builtin_memory_class builtin_memory_host_errors
Definition: pfs_builtin_memory.cc:60
PFS_builtin_memory_class builtin_memory_statements_history_long
Definition: pfs_builtin_memory.cc:108
PFS_builtin_memory_class builtin_memory_socket_class
Definition: pfs_builtin_memory.cc:95
PFS_builtin_memory_class builtin_memory_mutex_class
Definition: pfs_builtin_memory.cc:90
PFS_builtin_memory_class builtin_memory_thread_waits
Definition: pfs_builtin_memory.cc:64
PFS_builtin_memory_class builtin_memory_digest_sample_sqltext
Definition: pfs_builtin_memory.cc:105
PFS_builtin_memory_class builtin_memory_memory_class
Definition: pfs_builtin_memory.cc:98
PFS_builtin_memory_class builtin_memory_transactions_history_long
Definition: pfs_builtin_memory.cc:111
PFS_builtin_memory_class builtin_memory_account_memory
Definition: pfs_builtin_memory.cc:48
PFS_builtin_memory_class builtin_memory_thread_transactions
Definition: pfs_builtin_memory.cc:67
PFS_builtin_memory_class builtin_memory_cond
Definition: pfs_buffer_container.cc:47
PFS_builtin_memory_class builtin_memory_thread_statements
Definition: pfs_builtin_memory.cc:66
PFS_builtin_memory_class builtin_memory_socket
Definition: pfs_buffer_container.cc:55
PFS_builtin_memory_class builtin_memory_mutex
Definition: pfs_buffer_container.cc:39
PFS_builtin_memory_class builtin_memory_account_errors
Definition: pfs_builtin_memory.cc:47
PFS_builtin_memory_class builtin_memory_file
Definition: pfs_buffer_container.cc:51
PFS_builtin_memory_class builtin_memory_stages_history_long
Definition: pfs_builtin_memory.cc:107
PFS_builtin_memory_class builtin_memory_thread_class
Definition: pfs_builtin_memory.cc:93
PFS_builtin_memory_class builtin_memory_account_statements
Definition: pfs_builtin_memory.cc:45
PFS_builtin_memory_class builtin_memory_program
Definition: pfs_buffer_container.cc:92
PFS_builtin_memory_class * find_builtin_memory_class(PFS_builtin_memory_key)
Definition: pfs_builtin_memory.cc:476
PFS_builtin_memory_class builtin_memory_user_stages
Definition: pfs_builtin_memory.cc:84
PFS_builtin_memory_class builtin_memory_thread_errors
Definition: pfs_builtin_memory.cc:68
PFS_builtin_memory_class builtin_memory_table_share_index
Definition: pfs_buffer_container.cc:83
PFS_builtin_memory_class builtin_memory_global_memory
Definition: pfs_builtin_memory.cc:52
PFS_builtin_memory_class builtin_memory_setup_actor
Definition: pfs_buffer_container.cc:63
PFS_builtin_memory_class builtin_memory_thread
Definition: pfs_builtin_memory.cc:63
PFS_builtin_memory_class builtin_memory_mdl
Definition: pfs_buffer_container.cc:59
PFS_builtin_memory_class builtin_memory_host_transactions
Definition: pfs_builtin_memory.cc:59
PFS_builtin_memory_class builtin_memory_file_class
Definition: pfs_builtin_memory.cc:94
PFS_builtin_memory_class builtin_memory_account_transactions
Definition: pfs_builtin_memory.cc:46
PFS_builtin_memory_class builtin_memory_thread_statements_history
Definition: pfs_builtin_memory.cc:73
PFS_builtin_memory_class builtin_memory_thread_session_connect_attrs
Definition: pfs_builtin_memory.cc:80
PFS_builtin_memory_class builtin_memory_host_waits
Definition: pfs_builtin_memory.cc:56
PFS_builtin_memory_class builtin_memory_thread_transaction_history
Definition: pfs_builtin_memory.cc:79
uint PFS_builtin_memory_key
Definition: pfs_builtin_memory.h:36
PFS_builtin_memory_class builtin_memory_table_share
Definition: pfs_buffer_container.cc:77
PFS_builtin_memory_class builtin_memory_statement_class
Definition: pfs_builtin_memory.cc:97
PFS_builtin_memory_class builtin_memory_user_transactions
Definition: pfs_builtin_memory.cc:86
PFS_builtin_memory_class builtin_memory_thread_memory
Definition: pfs_builtin_memory.cc:69
PFS_builtin_memory_class builtin_memory_host_memory
Definition: pfs_builtin_memory.cc:61
PFS_builtin_memory_class builtin_memory_thread_statements_stack
Definition: pfs_builtin_memory.cc:76
PFS_builtin_memory_class builtin_memory_account_stages
Definition: pfs_builtin_memory.cc:44
PFS_builtin_memory_class builtin_memory_digest
Definition: pfs_builtin_memory.cc:103
PFS_builtin_memory_class builtin_memory_account
Definition: pfs_builtin_memory.cc:42
PFS_builtin_memory_class builtin_memory_digest_tokens
Definition: pfs_builtin_memory.cc:104
PFS_builtin_memory_class builtin_memory_host_statements
Definition: pfs_builtin_memory.cc:58
PFS_builtin_memory_class builtin_memory_global_stages
Definition: pfs_builtin_memory.cc:50
PFS_builtin_memory_class builtin_memory_statements_history_long_sqltext
Definition: pfs_builtin_memory.cc:110
PFS_builtin_memory_class builtin_memory_host
Definition: pfs_builtin_memory.cc:55
PFS_builtin_memory_class builtin_memory_thread_statements_history_tokens
Definition: pfs_builtin_memory.cc:74
PFS_builtin_memory_class builtin_memory_file_handle
Definition: pfs_builtin_memory.cc:40
PFS_builtin_memory_class builtin_memory_prepared_stmt
Definition: pfs_buffer_container.cc:96
void init_all_builtin_memory_class()
Definition: pfs_builtin_memory.cc:148
PFS_builtin_memory_class builtin_memory_thread_statements_stack_tokens
Definition: pfs_builtin_memory.cc:77
PFS_builtin_memory_class builtin_memory_thread_stages
Definition: pfs_builtin_memory.cc:65
PFS_builtin_memory_class builtin_memory_rwlock
Definition: pfs_buffer_container.cc:43
PFS_builtin_memory_class builtin_memory_setup_object
Definition: pfs_buffer_container.cc:68
Miscellaneous global dependencies (declarations).
Performance schema instruments metadata (declarations).
Definition: pfs_builtin_memory.h:38
void count_alloc(size_t size)
Definition: pfs_builtin_memory.h:42
void count_free(size_t size)
Definition: pfs_builtin_memory.h:44
PFS_memory_shared_stat m_stat
Definition: pfs_builtin_memory.h:40
PFS_memory_class m_class
Definition: pfs_builtin_memory.h:39
Instrumentation metadata for a memory.
Definition: pfs_instr_class.h:555
Definition: pfs_stat.h:919
unsigned int uint
Definition: uca-dump.cc:29