MySQL 9.1.0
Source Code Documentation
psi_memory_key.h
Go to the documentation of this file.
1/* Copyright (c) 2015, 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 PSI_MEMORY_KEY_INCLUDED
25#define PSI_MEMORY_KEY_INCLUDED
26
27/**
28 Instrumented memory key.
29 To instrument memory, a memory key must be obtained using @c register_memory.
30 Using a zero key always disable the instrumentation.
31*/
32
34
35typedef unsigned int PSI_memory_key;
36
37/*
38 MAINTAINER: Please keep this list in order, to limit merge collisions.
39*/
40
41/*
42 These are defined in misc. .cc files, to avoid linkage problems
43 for tools like mysqlbinlog.cc and for unit tests.
44*/
58
59/*
60 These are defined in psi_memory_key.cc
61 */
179
180#endif // PSI_MEMORY_KEY_INCLUDED
PSI_memory_key key_memory_event_basic_root
Definition: events.cc:1055
unsigned int PSI_memory_key
Instrumented memory key.
Definition: psi_memory_bits.h:49
PSI_memory_key key_memory_DD_default_values
Definition: psi_memory_key.cc:39
PSI_memory_key key_memory_Mutex_cond_array_Mutex_cond
Definition: psi_memory_key.cc:63
PSI_memory_key key_memory_DD_objects
Definition: psi_memory_key.cc:41
PSI_memory_key key_memory_DD_column_statistics
Definition: psi_memory_key.cc:38
PSI_memory_key key_memory_hash_op
Definition: psi_memory_key.cc:116
PSI_memory_key key_memory_Replica_job_group_group_relay_log_name
Definition: psi_memory_key.cc:85
PSI_memory_key key_memory_JOIN_CACHE
Definition: psi_memory_key.cc:52
PSI_memory_key key_memory_persisted_variables_unordered_map
Definition: psi_memory_key.cc:126
PSI_memory_key key_memory_partitions_prune_exec
Definition: psi_memory_key.cc:130
PSI_memory_key key_memory_Row_data_memory_memory
Definition: psi_memory_key.cc:73
PSI_memory_key key_memory_prepared_statement_main_mem_root
Definition: psi_memory_key.cc:129
PSI_memory_key key_memory_table_def_memory
Definition: rpl_utility.cc:948
PSI_memory_key key_memory_servers
Definition: psi_memory_key.cc:136
PSI_memory_key key_memory_binlog_recover_exec
Definition: psi_memory_key.cc:105
PSI_memory_key key_memory_global_system_variables
Definition: psi_memory_key.cc:112
PSI_memory_key key_memory_NET_compress_packet
Definition: psi_memory_key.cc:65
PSI_memory_key key_memory_opt_bin_logname
Definition: psi_memory_key.cc:123
PSI_memory_key key_memory_rpl_replica_check_temp_dir
Definition: psi_memory_key.cc:135
PSI_memory_key key_memory_db_worker_hash_entry
Definition: psi_memory_key.cc:109
PSI_memory_key key_memory_help
Definition: psi_memory_key.cc:117
PSI_memory_key key_memory_acl_cache
Definition: psi_memory_key.cc:102
PSI_memory_key key_memory_host_cache_hostname
Definition: psi_memory_key.cc:119
PSI_memory_key key_memory_MYSQL_LOG_name
Definition: psi_memory_key.cc:60
PSI_memory_key key_memory_xa_recovered_transactions
Definition: psi_memory_key.cc:72
PSI_memory_key key_memory_THD_handler_tables_hash
Definition: psi_memory_key.cc:94
PSI_memory_key key_memory_hash_index_key_buffer
Definition: psi_memory_key.cc:115
PSI_memory_key key_memory_relaylog_recovery
Definition: psi_memory_key.cc:80
PSI_memory_key key_memory_queue_item
Definition: psi_memory_key.cc:131
PSI_memory_key key_memory_READ_RECORD_cache
Definition: psi_memory_key.cc:71
PSI_memory_key key_memory_String_value
Definition: sql_string.cc:46
PSI_memory_key key_memory_Slave_applier_json_diff_vector
Definition: psi_memory_key.cc:84
PSI_memory_key key_memory_acl_mem
Definition: psi_memory_key.cc:100
PSI_memory_key key_memory_user_var_entry_value
Definition: psi_memory_key.cc:150
PSI_memory_key key_memory_my_bitmap_map
PSI_memory_key key_memory_locked_thread_list
Definition: psi_memory_key.cc:121
PSI_memory_key key_memory_sp_cache
Definition: psi_memory_key.cc:151
PSI_memory_key key_memory_Unique_merge_buffer
Definition: psi_memory_key.cc:96
PSI_memory_key key_memory_recovery
Definition: psi_memory_key.cc:78
PSI_memory_key key_memory_log_event
Definition: log_event.cc:192
PSI_memory_key key_memory_show_binlog_events
Definition: psi_memory_key.cc:79
PSI_memory_key key_memory_rpl_filter
Definition: psi_memory_key.cc:134
PSI_memory_key key_memory_user_var_entry
Definition: psi_memory_key.cc:149
PSI_memory_key key_memory_applier_metric_service
Definition: psi_memory_key.cc:81
PSI_memory_key key_memory_log_error_loaded_services
Definition: log_builtins.cc:74
PSI_memory_key key_memory_DD_import
Definition: psi_memory_key.cc:40
PSI_memory_key key_memory_Sys_var_charptr_value
Definition: psi_memory_key.cc:86
PSI_memory_key key_memory_sp_head_execute_root
Definition: psi_memory_key.cc:140
PSI_memory_key key_memory_Rpl_info_table
Definition: psi_memory_key.cc:75
PSI_memory_key key_memory_PROFILE
Definition: psi_memory_key.cc:68
PSI_memory_key key_memory_sp_head_main_root
Definition: psi_memory_key.cc:141
PSI_memory_key key_memory_THD_db
Definition: psi_memory_key.cc:93
PSI_memory_key key_memory_test_quick_select_exec
Definition: psi_memory_key.cc:144
PSI_memory_key key_memory_DD_String_type
Definition: psi_memory_key.cc:42
PSI_memory_key key_memory_thd_timer
Definition: psi_memory_key.cc:146
PSI_memory_key key_memory_table_mapping_root
Definition: psi_memory_key.cc:142
PSI_memory_key key_memory_THD_Session_tracker
Definition: psi_memory_key.cc:92
PSI_memory_key key_memory_prepared_statement_infrastructure
Definition: psi_memory_key.cc:128
PSI_memory_key key_memory_Filesort_buffer_sort_keys
Definition: filesort_utils.cc:40
PSI_memory_key key_memory_thd_transactions
Definition: psi_memory_key.cc:147
PSI_memory_key key_memory_table_share
Definition: psi_memory_key.cc:143
PSI_memory_key key_memory_locked_table_list
Definition: psi_memory_key.cc:120
PSI_memory_key key_memory_Gtid_state_group_commit_sidno
Definition: rpl_gtid_state.cc:52
PSI_memory_key key_memory_Rpl_info_file_buffer
Definition: psi_memory_key.cc:74
PSI_memory_key key_memory_TABLE_sort_io_cache
Definition: psi_memory_key.cc:89
PSI_memory_key key_memory_MYSQL_RELAY_LOG_basename
Definition: psi_memory_key.cc:61
PSI_memory_key key_memory_DD_cache_infrastructure
Definition: psi_memory_key.cc:37
PSI_memory_key key_memory_TC_LOG_MMAP_pages
Definition: psi_memory_key.cc:90
PSI_memory_key key_memory_MYSQL_BIN_LOG_index
Definition: psi_memory_key.cc:58
PSI_memory_key key_memory_IndexRangeScanIterator_mrr_buf_desc
Definition: psi_memory_key.cc:69
PSI_memory_key key_memory_errmsgs_handler
Definition: psi_memory_key.cc:113
PSI_memory_key key_memory_READ_INFO
Definition: psi_memory_key.cc:70
PSI_memory_key key_memory_tsid_map_Node
Definition: rpl_gtid_tsid_map.cc:44
PSI_memory_key key_memory_string_iterator
Definition: string_service.cc:44
PSI_memory_key key_memory_shared_memory_name
Definition: psi_memory_key.cc:137
PSI_memory_key key_memory_rpl_thd_context
Definition: psi_memory_key.cc:76
PSI_memory_key key_memory_TABLE_RULE_ENT
Definition: psi_memory_key.cc:88
PSI_memory_key key_memory_File_query_log_name
Definition: psi_memory_key.cc:45
PSI_memory_key key_memory_log_error_stack
Definition: log_builtins.cc:75
PSI_memory_key key_memory_MYSQL_LOCK
Definition: psi_memory_key.cc:59
unsigned int PSI_memory_key
Definition: psi_memory_key.h:35
PSI_memory_key key_memory_REPLICA_INFO
Definition: psi_memory_key.cc:82
PSI_memory_key key_memory_TABLE
Definition: psi_memory_key.cc:87
PSI_memory_key key_memory_blob_mem_storage
Definition: psi_memory_key.cc:108
PSI_memory_key key_memory_Gtid_set_Interval_chunk
Definition: rpl_gtid_set.cc:68
PSI_memory_key key_memory_show_replica_status_io_gtid_set
Definition: psi_memory_key.cc:138
PSI_memory_key key_memory_Filesort_info_merge
Definition: psi_memory_key.cc:46
PSI_memory_key key_memory_Event_queue_element_for_exec_names
Definition: psi_memory_key.cc:43
PSI_memory_key key_memory_thd_main_mem_root
Definition: psi_memory_key.cc:145
PSI_memory_key key_memory_errmsgs_server
Definition: psi_memory_key.cc:111
PSI_memory_key key_memory_persisted_variables_unordered_set
Definition: psi_memory_key.cc:127
PSI_memory_key key_memory_histograms
Definition: psi_memory_key.cc:118
PSI_memory_key key_memory_Owned_gtids_sidno_to_hash
Definition: psi_memory_key.cc:66
PSI_memory_key key_memory_Geometry_objects_data
Definition: psi_memory_key.cc:48
PSI_memory_key key_memory_delegate
Definition: psi_memory_key.cc:110
PSI_memory_key key_memory_HASH_ROW_ENTRY
Definition: psi_memory_key.cc:51
PSI_memory_key key_memory_string_service_iterator
Definition: mysql_string_service.cc:39
PSI_memory_key key_memory_Filesort_info_record_pointers
Definition: psi_memory_key.cc:47
PSI_memory_key key_memory_Gtid_set_to_string
Definition: rpl_gtid_set.cc:67
PSI_memory_key key_memory_ST_SCHEMA_TABLE
Definition: psi_memory_key.cc:83
PSI_memory_key key_memory_User_level_lock
Definition: psi_memory_key.cc:98
void register_server_memory_keys()
Instrumented memory key.
Definition: psi_memory_key.cc:407
PSI_memory_key key_memory_acl_map_cache
Definition: psi_memory_key.cc:103
PSI_memory_key key_memory_LOG_POS_COORD
Definition: psi_memory_key.cc:54
PSI_memory_key key_memory_Owned_gtids_to_string
Definition: psi_memory_key.cc:67
PSI_memory_key key_memory_bison_stack
Definition: psi_memory_key.cc:107
PSI_memory_key key_memory_binlog_cache_mngr
Definition: psi_memory_key.cc:104
PSI_memory_key key_memory_user_conn
Definition: psi_memory_key.cc:148
PSI_memory_key key_memory_MYSQL_BIN_LOG_basename
Definition: psi_memory_key.cc:57
PSI_memory_key key_memory_MPVIO_EXT_auth_info
Definition: psi_memory_key.cc:56
PSI_memory_key key_memory_binlog_statement_buffer
Definition: psi_memory_key.cc:106
PSI_memory_key key_memory_rm_db_mdl_reqs_root
Definition: psi_memory_key.cc:132
PSI_memory_key key_memory_persisted_variables_memroot
Definition: psi_memory_key.cc:125
PSI_memory_key key_memory_my_str_malloc
Definition: psi_memory_key.cc:122
PSI_memory_key key_memory_acl_memex
Definition: psi_memory_key.cc:101
PSI_memory_key key_memory_NET_buff
Definition: psi_memory_key.cc:64
PSI_memory_key key_memory_Gis_read_stream_err_msg
Definition: psi_memory_key.cc:49
PSI_memory_key key_memory_rm_table_foreach_root
Definition: psi_memory_key.cc:133
PSI_memory_key key_memory_Event_scheduler_scheduler_param
Definition: psi_memory_key.cc:44
PSI_memory_key key_memory_THD_Session_sysvar_resource_manager
Definition: psi_memory_key.cc:91
PSI_memory_key key_memory_write_set_extraction
Definition: psi_memory_key.cc:152
PSI_memory_key key_memory_Unique_sort_buffer
Definition: psi_memory_key.cc:97
PSI_memory_key key_memory_log_sink_pfs
memory instrumentation
Definition: log_sink_perfschema.cc:88
PSI_memory_key key_memory_partition_syntax_buffer
Definition: psi_memory_key.cc:124
PSI_memory_key key_memory_THD_variables
Definition: psi_memory_key.cc:95
PSI_memory_key key_memory_applier
Definition: psi_memory_key.cc:77
PSI_memory_key key_memory_xa_transaction_contexts
Definition: psi_memory_key.cc:99
PSI_memory_key key_memory_MYSQL_RELAY_LOG_index
Definition: psi_memory_key.cc:62
PSI_memory_key key_memory_handlerton_objects
Definition: psi_memory_key.cc:114
PSI_memory_key key_memory_JSON
Definition: psi_memory_key.cc:53
PSI_memory_key key_memory_LOG_name
Definition: psi_memory_key.cc:55
PSI_memory_key key_memory_sp_head_call_root
Definition: psi_memory_key.cc:139