MySQL  8.0.16
Source Code Documentation
psi_memory_key.h
Go to the documentation of this file.
1 /* Copyright (c) 2015, 2018, Oracle and/or its affiliates. All rights reserved.
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 PSI_MEMORY_KEY_INCLUDED
24 #define PSI_MEMORY_KEY_INCLUDED
25 
26 /**
27  Instrumented memory key.
28  To instrument memory, a memory key must be obtained using @c register_memory.
29  Using a zero key always disable the instrumentation.
30 */
31 
33 
34 typedef unsigned int PSI_memory_key;
35 
36 /*
37  MAINTAINER: Please keep this list in order, to limit merge collisions.
38 */
39 
40 /*
41  These are defined in misc. .cc files, to avoid linkage problems
42  for tools like mysqlbinlog.cc and for unit tests.
43 */
56 
57 /*
58  These are defined in psi_memory_key.cc
59  */
188 
189 #endif // PSI_MEMORY_KEY_INCLUDED
PSI_memory_key key_memory_Mutex_cond_array_Mutex_cond
Definition: psi_memory_key.cc:62
PSI_memory_key key_memory_user_var_entry_value
Definition: psi_memory_key.cc:159
PSI_memory_key key_memory_warning_info_warn_root
Definition: psi_memory_key.cc:160
PSI_memory_key key_memory_Recovered_xa_transactions
Definition: psi_memory_key.cc:73
PSI_memory_key key_memory_acl_memex
Definition: psi_memory_key.cc:101
PSI_memory_key key_memory_LOG_name
Definition: psi_memory_key.cc:54
PSI_memory_key key_memory_Unique_merge_buffer
Definition: psi_memory_key.cc:95
PSI_memory_key key_memory_table_def_memory
Definition: rpl_utility.cc:712
PSI_memory_key key_memory_MYSQL_BIN_LOG_index
Definition: psi_memory_key.cc:57
PSI_memory_key key_memory_SLAVE_INFO
Definition: psi_memory_key.cc:78
PSI_memory_key key_memory_File_query_log_name
Definition: psi_memory_key.cc:43
PSI_memory_key key_memory_LOG_POS_COORD
Definition: psi_memory_key.cc:53
PSI_memory_key key_memory_Rpl_info_file_buffer
Definition: psi_memory_key.cc:76
PSI_memory_key key_memory_thd_timer
Definition: psi_memory_key.cc:155
PSI_memory_key key_memory_MYSQL_RELAY_LOG_basename
Definition: psi_memory_key.cc:60
PSI_memory_key key_memory_binlog_pos
Definition: psi_memory_key.cc:105
PSI_memory_key key_memory_Table_trigger_dispatcher
Definition: psi_memory_key.cc:94
PSI_memory_key key_memory_rpl_slave_command_buffer
Definition: psi_memory_key.cc:143
PSI_memory_key key_memory_Gtid_set_to_string
Definition: rpl_gtid_set.cc:63
PSI_memory_key key_memory_Security_context
Definition: psi_memory_key.cc:80
PSI_memory_key key_memory_Gtid_set_Interval_chunk
Definition: rpl_gtid_set.cc:64
PSI_memory_key key_memory_JSON
Definition: psi_memory_key.cc:52
PSI_memory_key key_memory_acl_map_cache
Definition: psi_memory_key.cc:103
PSI_memory_key key_memory_show_slave_status_io_gtid_set
Definition: psi_memory_key.cc:146
PSI_memory_key key_memory_string_iterator
Definition: string_service.cc:42
PSI_memory_key key_memory_shared_memory_name
Definition: psi_memory_key.cc:145
PSI_memory_key key_memory_global_system_variables
Definition: psi_memory_key.cc:117
PSI_memory_key key_memory_NAMED_ILINK_name
Definition: psi_memory_key.cc:63
PSI_memory_key key_memory_Sys_var_charptr_value
Definition: psi_memory_key.cc:84
PSI_memory_key key_memory_User_level_lock
Definition: psi_memory_key.cc:97
PSI_memory_key key_memory_Sort_param_tmp_buffer
Definition: psi_memory_key.cc:83
PSI_memory_key key_memory_THD_Session_tracker
Definition: psi_memory_key.cc:90
PSI_memory_key key_memory_quick_group_min_max_select_root
Definition: psi_memory_key.cc:136
PSI_memory_key key_memory_Slave_job_group_group_relay_log_name
Definition: psi_memory_key.cc:82
PSI_memory_key key_memory_Rpl_info_table
Definition: psi_memory_key.cc:77
unsigned int PSI_memory_key
Instrumented memory key.
Definition: psi_memory_bits.h:46
PSI_memory_key key_memory_prepared_statement_map
Definition: psi_memory_key.cc:131
PSI_memory_key key_memory_Row_data_memory_memory
Definition: psi_memory_key.cc:75
PSI_memory_key key_memory_opt_bin_logname
Definition: psi_memory_key.cc:129
PSI_memory_key key_memory_THD_db
Definition: psi_memory_key.cc:91
PSI_memory_key key_memory_String_value
Definition: sql_string.cc:37
PSI_memory_key key_memory_hash_index_key_buffer
Definition: psi_memory_key.cc:120
PSI_memory_key key_memory_Slave_applier_json_diff_vector
Definition: psi_memory_key.cc:81
PSI_memory_key key_memory_handler_errmsgs
Definition: psi_memory_key.cc:118
PSI_memory_key key_memory_ST_SCHEMA_TABLE
Definition: psi_memory_key.cc:79
PSI_memory_key key_memory_Owned_gtids_to_string
Definition: psi_memory_key.cc:67
PSI_memory_key key_memory_protocol_rset_root
Definition: psi_memory_key.cc:133
PSI_memory_key key_memory_sp_head_call_root
Definition: psi_memory_key.cc:147
PSI_memory_key key_memory_DD_column_statistics
Definition: psi_memory_key.cc:37
PSI_memory_key key_memory_binlog_cache_mngr
Definition: psi_memory_key.cc:104
PSI_memory_key key_memory_QUICK_RANGE_SELECT_mrr_buf_desc
Definition: psi_memory_key.cc:69
PSI_memory_key key_memory_DD_String_type
Definition: psi_memory_key.cc:40
PSI_memory_key key_memory_quick_ror_union_select_root
Definition: psi_memory_key.cc:140
PSI_memory_key key_memory_Filesort_buffer_sort_keys
Definition: filesort_utils.cc:39
PSI_memory_key key_memory_help
Definition: psi_memory_key.cc:121
PSI_memory_key key_memory_Geometry_objects_data
Definition: psi_memory_key.cc:47
PSI_memory_key key_memory_log_error_stack
Definition: log_builtins.cc:70
PSI_memory_key key_memory_HASH_ROW_ENTRY
Definition: psi_memory_key.cc:50
PSI_memory_key key_memory_sp_cache
Definition: psi_memory_key.cc:161
PSI_memory_key key_memory_rpl_slave_check_temp_dir
Definition: psi_memory_key.cc:142
PSI_memory_key key_memory_Event_queue_element_for_exec_names
Definition: psi_memory_key.cc:41
PSI_memory_key key_memory_TABLE
Definition: psi_memory_key.cc:85
PSI_memory_key key_memory_thd_transactions
Definition: psi_memory_key.cc:156
PSI_memory_key key_memory_table_mapping_root
Definition: psi_memory_key.cc:150
PSI_memory_key key_memory_XID_STATE
Definition: psi_memory_key.cc:99
PSI_memory_key key_memory_binlog_statement_buffer
Definition: psi_memory_key.cc:107
PSI_memory_key key_memory_Gcalc_dyn_list_block
Definition: psi_memory_key.cc:46
PSI_memory_key key_memory_user_conn
Definition: psi_memory_key.cc:157
unsigned int PSI_memory_key
Definition: psi_memory_key.h:34
PSI_memory_key key_memory_user_var_entry
Definition: psi_memory_key.cc:158
PSI_memory_key key_memory_quick_ror_intersect_select_root
Definition: psi_memory_key.cc:139
PSI_memory_key key_memory_THD_handler_tables_hash
Definition: psi_memory_key.cc:92
PSI_memory_key key_memory_blob_mem_storage
Definition: psi_memory_key.cc:110
PSI_memory_key key_memory_TABLE_sort_io_cache
Definition: psi_memory_key.cc:87
PSI_memory_key key_memory_gdl
Definition: psi_memory_key.cc:116
PSI_memory_key key_memory_NET_compress_packet
Definition: psi_memory_key.cc:65
PSI_memory_key key_memory_errmsgs
Definition: psi_memory_key.cc:113
PSI_memory_key key_memory_sp_head_execute_root
Definition: psi_memory_key.cc:148
PSI_memory_key key_memory_Owned_gtids_sidno_to_hash
Definition: psi_memory_key.cc:66
PSI_memory_key key_memory_table_share
Definition: psi_memory_key.cc:151
PSI_memory_key key_memory_acl_cache
Definition: psi_memory_key.cc:102
PSI_memory_key key_memory_MYSQL_BIN_LOG_basename
Definition: psi_memory_key.cc:56
PSI_memory_key key_memory_table_triggers_list
Definition: psi_memory_key.cc:152
PSI_memory_key key_memory_servers
Definition: psi_memory_key.cc:144
PSI_memory_key key_memory_Incident_log_event_message
Definition: log_event.cc:167
PSI_memory_key key_memory_Relay_log_info_group_relay_log_name
Definition: psi_memory_key.cc:74
void register_server_memory_keys()
Instrumented memory key.
Definition: psi_memory_key.cc:404
PSI_memory_key key_memory_MYSQL_RELAY_LOG_index
Definition: psi_memory_key.cc:61
PSI_memory_key key_memory_fill_schema_schemata
Definition: psi_memory_key.cc:114
PSI_memory_key key_memory_prepared_statement_main_mem_root
Definition: psi_memory_key.cc:132
PSI_memory_key key_memory_string_service_iterator
Definition: mysql_string_service.cc:37
PSI_memory_key key_memory_Gtid_state_group_commit_sidno
Definition: rpl_gtid_state.cc:50
PSI_memory_key key_memory_log_error_loaded_services
Definition: log_builtins.cc:69
PSI_memory_key key_memory_thd_main_mem_root
Definition: psi_memory_key.cc:154
PSI_memory_key key_memory_native_functions
Definition: psi_memory_key.cc:115
PSI_memory_key key_memory_THD_variables
Definition: psi_memory_key.cc:93
PSI_memory_key key_memory_my_str_malloc
Definition: psi_memory_key.cc:128
PSI_memory_key key_memory_binlog_ver_1_event
Definition: psi_memory_key.cc:108
PSI_memory_key key_memory_NET_buff
Definition: psi_memory_key.cc:64
PSI_memory_key key_memory_binlog_recover_exec
Definition: psi_memory_key.cc:106
PSI_memory_key key_memory_DATE_TIME_FORMAT
Definition: psi_memory_key.cc:36
PSI_memory_key key_memory_sp_head_main_root
Definition: psi_memory_key.cc:149
PSI_memory_key key_memory_DD_default_values
Definition: psi_memory_key.cc:38
PSI_memory_key key_memory_locked_thread_list
Definition: psi_memory_key.cc:126
PSI_memory_key key_memory_rpl_filter
Definition: psi_memory_key.cc:141
PSI_memory_key key_memory_write_set_extraction
Definition: psi_memory_key.cc:162
PSI_memory_key key_memory_Quick_ranges
Definition: psi_memory_key.cc:70
PSI_memory_key key_memory_my_bitmap_map
Definition: psi_memory_key.cc:127
PSI_memory_key key_memory_Unique_sort_buffer
Definition: psi_memory_key.cc:96
PSI_memory_key key_memory_delegate
Definition: psi_memory_key.cc:112
PSI_memory_key key_memory_ignored_db
Definition: psi_memory_key.cc:124
PSI_memory_key key_memory_bison_stack
Definition: psi_memory_key.cc:109
PSI_memory_key key_memory_handlerton
Definition: psi_memory_key.cc:119
PSI_memory_key key_memory_log_event
Definition: log_event.cc:164
PSI_memory_key key_memory_partition_syntax_buffer
Definition: psi_memory_key.cc:130
PSI_memory_key key_memory_XID
Definition: psi_memory_key.cc:98
PSI_memory_key key_memory_THD_Session_sysvar_resource_manager
Definition: psi_memory_key.cc:89
PSI_memory_key key_memory_TABLE_RULE_ENT
Definition: psi_memory_key.cc:86
PSI_memory_key key_memory_acl_mem
Definition: psi_memory_key.cc:100
PSI_memory_key key_memory_Filesort_info_merge
Definition: psi_memory_key.cc:44
PSI_memory_key key_memory_db_worker_hash_entry
Definition: psi_memory_key.cc:111
PSI_memory_key key_memory_JOIN_CACHE
Definition: psi_memory_key.cc:51
PSI_memory_key key_memory_queue_item
Definition: psi_memory_key.cc:135
PSI_memory_key key_memory_histograms
Definition: psi_memory_key.cc:122
PSI_memory_key key_memory_quick_index_merge_root
Definition: psi_memory_key.cc:137
PSI_memory_key key_memory_PROFILE
Definition: psi_memory_key.cc:68
PSI_memory_key key_memory_DD_import
Definition: psi_memory_key.cc:39
PSI_memory_key key_memory_MPVIO_EXT_auth_info
Definition: psi_memory_key.cc:55
PSI_memory_key key_memory_test_quick_select_exec
Definition: psi_memory_key.cc:153
PSI_memory_key key_memory_Rows_query_log_event_rows_query
Definition: log_event.cc:168
PSI_memory_key key_memory_host_cache_hostname
Definition: psi_memory_key.cc:123
PSI_memory_key key_memory_MYSQL_LOG_name
Definition: psi_memory_key.cc:59
PSI_memory_key key_memory_prune_partitions_exec
Definition: psi_memory_key.cc:134
PSI_memory_key key_memory_Event_scheduler_scheduler_param
Definition: psi_memory_key.cc:42
PSI_memory_key key_memory_quick_range_select_root
Definition: psi_memory_key.cc:138
PSI_memory_key key_memory_locked_table_list
Definition: psi_memory_key.cc:125
PSI_memory_key key_memory_READ_RECORD_cache
Definition: psi_memory_key.cc:72
PSI_memory_key key_memory_READ_INFO
Definition: psi_memory_key.cc:71
PSI_memory_key key_memory_Sid_map_Node
Definition: rpl_gtid_sid_map.cc:43
PSI_memory_key key_memory_Filesort_info_record_pointers
Definition: psi_memory_key.cc:45
PSI_memory_key key_memory_MYSQL_LOCK
Definition: psi_memory_key.cc:58
PSI_memory_key key_memory_TC_LOG_MMAP_pages
Definition: psi_memory_key.cc:88
PSI_memory_key key_memory_Gis_read_stream_err_msg
Definition: psi_memory_key.cc:48