55#ifdef HAVE_PSI_INTERFACE
57#define PFS_AUTOSCALE_VALUE (-1)
58#define PFS_AUTOSIZE_VALUE (-1)
60#ifndef PFS_MAX_MUTEX_CLASS
61#define PFS_MAX_MUTEX_CLASS 350
63#ifndef PFS_MAX_RWLOCK_CLASS
64#define PFS_MAX_RWLOCK_CLASS 100
66#ifndef PFS_MAX_COND_CLASS
67#define PFS_MAX_COND_CLASS 150
69#ifndef PFS_MAX_THREAD_CLASS
70#define PFS_MAX_THREAD_CLASS 100
72#ifndef PFS_MAX_FILE_CLASS
73#define PFS_MAX_FILE_CLASS 80
75#ifndef PFS_MAX_FILE_HANDLE
76#define PFS_MAX_FILE_HANDLE 32768
78#ifndef PFS_MAX_SOCKET_CLASS
79#define PFS_MAX_SOCKET_CLASS 10
81#ifndef PFS_MAX_STAGE_CLASS
82#define PFS_MAX_STAGE_CLASS 175
84#ifndef PFS_STATEMENTS_STACK_SIZE
85#define PFS_STATEMENTS_STACK_SIZE 10
87#ifndef PFS_MAX_MEMORY_CLASS
88#define PFS_MAX_MEMORY_CLASS 470
90#ifndef PFS_MAX_METER_CLASS
91#define PFS_MAX_METER_CLASS 30
93#ifndef PFS_MAX_METRIC_CLASS
94#define PFS_MAX_METRIC_CLASS 600
96#ifndef PFS_MAX_LOGGER_CLASS
97#define PFS_MAX_LOGGER_CLASS 80
100#ifndef PFS_MAX_GLOBAL_SERVER_ERRORS
101#define PFS_MAX_GLOBAL_SERVER_ERRORS \
102 (1 + pfs_session_error_stat_count + pfs_global_error_stat_count)
105#ifndef PFS_MAX_SESSION_SERVER_ERRORS
106#define PFS_MAX_SESSION_SERVER_ERRORS (1 + pfs_session_error_stat_count)
Defines various enable/disable and HAVE_ macros related to the performance schema instrumentation sys...
Definition: bootstrap.cc:71
ValueType value(const std::optional< ValueType > &v)
Definition: gtid.h:83
void reset_pfs_status_stats()
Reset the aggregated status counter stats.
Definition: pfs_variable.cc:1546
int add_pfs_meter_to_array(const char *name, const char *value)
Process one PFS_METER configuration string.
Definition: pfs_server.cc:574
int initialize_performance_schema(PFS_global_param *param, PSI_thread_bootstrap **thread_bootstrap, PSI_mutex_bootstrap **mutex_bootstrap, PSI_rwlock_bootstrap **rwlock_bootstrap, PSI_cond_bootstrap **cond_bootstrap, PSI_file_bootstrap **file_bootstrap, PSI_socket_bootstrap **socket_bootstrap, PSI_table_bootstrap **table_bootstrap, PSI_mdl_bootstrap **mdl_bootstrap, PSI_idle_bootstrap **idle_bootstrap, PSI_stage_bootstrap **stage_bootstrap, PSI_statement_bootstrap **statement_bootstrap, PSI_transaction_bootstrap **transaction_bootstrap, PSI_memory_bootstrap **memory_bootstrap, PSI_error_bootstrap **error_bootstrap, PSI_data_lock_bootstrap **data_lock_bootstrap, PSI_system_bootstrap **system_bootstrap, PSI_tls_channel_bootstrap **tls_channel_bootstrap, PSI_metric_bootstrap **metric_bootstrap, PSI_logs_client_bootstrap **logs_client_bootstrap)
Initialize the performance schema.
Definition: pfs_server.cc:100
void shutdown_performance_schema()
Shutdown the performance schema.
Definition: pfs_server.cc:416
void init_pfs_instrument_array()
Initialize the dynamic array holding individual instrument settings collected from the server configu...
Definition: pfs_server.cc:451
void pfs_automated_sizing(PFS_global_param *param)
Definition: pfs_autosize.cc:159
void init_pfs_meter_array()
Initialize the dynamic array holding individual meter instrument settings collected from the server c...
Definition: pfs_server.cc:529
void pre_initialize_performance_schema()
Null initialization.
Definition: pfs_server.cc:77
int add_pfs_instr_to_array(const char *name, const char *value)
Process one PFS_INSTRUMENT configuration string.
Definition: pfs_server.cc:476
int add_pfs_logger_to_array(const char *name, const char *value)
Process one PFS_LOGGER configuration string.
Definition: pfs_server.cc:690
PFS_global_param pfs_param
Performance schema sizing values for the server.
Definition: pfs_server.cc:68
void init_pfs_logger_array()
Initialize the dynamic array holding individual logger instrument settings collected from the server ...
Definition: pfs_server.cc:548
Performance schema instrumentation interface.
Performance schema instrumentation interface.
Performance schema instrumentation interface.
Performance schema instrumentation interface.
Performance schema instrumentation interface.
Performance schema instrumentation interface.
Performance schema instrumentation interface.
Performance schema instrumentation interface.
Performance schema instrumentation interface.
Performance schema instrumentation interface.
Performance schema instrumentation interface.
Performance schema instrumentation interface.
Performance schema instrumentation interface.
Performance schema instrumentation interface.
Performance schema instrumentation interface.
Performance schema instrumentation interface.
Performance schema instrumentation interface.
Performance schema instrumentation interface.
Performance schema instrumentation interface.
case opt name
Definition: sslopt-case.h:29
Performance schema global sizing parameters.
Definition: pfs_server.h:124
long m_events_stages_history_long_sizing
Maximum number of rows in table EVENTS_STAGES_HISTORY_LONG.
Definition: pfs_server.h:261
ulong m_memory_class_sizing
Maximum number of instrumented memory classes.
Definition: pfs_server.h:291
long m_socket_sizing
Maximum number of instrumented socket instances.
Definition: pfs_server.h:233
long m_session_connect_attrs_sizing
Maximum number of session attribute strings per thread.
Definition: pfs_server.h:283
ulong m_metric_class_sizing
Maximum number of instrumented metric classes.
Definition: pfs_server.h:303
long m_events_transactions_history_long_sizing
Maximum number of rows in table EVENTS_TRANSACTIONS_HISTORY_LONG.
Definition: pfs_server.h:280
bool m_consumer_events_stages_history_enabled
Definition: pfs_server.h:129
ulong m_max_digest_sample_age
Maximum age in seconds for a query sample.
Definition: pfs_server.h:317
long m_account_sizing
Maximum number of rows in table ACCOUNTS.
Definition: pfs_server.h:252
long m_user_sizing
Maximum number of rows in table USERS.
Definition: pfs_server.h:250
long m_events_waits_history_long_sizing
Maximum number of rows in table EVENTS_WAITS_HISTORY_LONG.
Definition: pfs_server.h:242
long m_index_stat_sizing
Maximum number of index statistics collected for tables.
Definition: pfs_server.h:188
long m_prepared_stmt_sizing
Maximum number of prepared statements to be captured.
Definition: pfs_server.h:276
bool m_consumer_events_transactions_history_enabled
Definition: pfs_server.h:136
bool m_consumer_thread_instrumentation_enabled
Definition: pfs_server.h:142
long m_events_stages_history_sizing
Maximum number of rows per thread in table EVENTS_STAGES_HISTORY.
Definition: pfs_server.h:259
bool m_consumer_events_statements_history_enabled
Definition: pfs_server.h:133
bool m_consumer_events_stages_current_enabled
Default values for SETUP_CONSUMERS.
Definition: pfs_server.h:128
bool m_consumer_events_waits_current_enabled
Definition: pfs_server.h:138
long m_table_share_sizing
Maximum number of instrumented table share.
Definition: pfs_server.h:178
long m_digest_sizing
Maximum number of digests to be captured.
Definition: pfs_server.h:272
bool m_consumer_events_statements_current_enabled
Definition: pfs_server.h:132
ulong m_mutex_class_sizing
Maximum number of instrumented mutex classes.
Definition: pfs_server.h:158
long m_program_sizing
Maximum number of programs to be captured.
Definition: pfs_server.h:274
bool m_consumer_events_transactions_history_long_enabled
Definition: pfs_server.h:137
ulong m_meter_class_sizing
Maximum number of instrumented meter classes.
Definition: pfs_server.h:297
bool m_consumer_events_stages_history_long_enabled
Definition: pfs_server.h:130
long m_file_sizing
Maximum number of instrumented file instances.
Definition: pfs_server.h:223
long m_events_statements_history_long_sizing
Maximum number of rows in table EVENTS_STATEMENTS_HISTORY_LONG.
Definition: pfs_server.h:270
ulong m_socket_class_sizing
Maximum number of instrumented socket classes.
Definition: pfs_server.h:238
long m_rwlock_sizing
Maximum number of instrumented rwlock instances.
Definition: pfs_server.h:203
bool m_consumer_events_statements_history_long_enabled
Definition: pfs_server.h:134
long m_file_handle_sizing
Maximum number of instrumented file handles.
Definition: pfs_server.h:228
bool m_enabled
True if the performance schema is enabled.
Definition: pfs_server.h:126
ulong m_file_class_sizing
Maximum number of instrumented file classes.
Definition: pfs_server.h:193
long m_metadata_lock_sizing
Definition: pfs_server.h:311
long m_setup_object_sizing
Maximum number of rows in table SETUP_OBJECTS.
Definition: pfs_server.h:246
ulong m_rwlock_class_sizing
Maximum number of instrumented rwlock classes.
Definition: pfs_server.h:163
long m_events_waits_history_sizing
Maximum number of rows per thread in table EVENTS_WAITS_HISTORY.
Definition: pfs_server.h:240
ulong m_max_sql_text_length
Definition: pfs_server.h:314
long m_events_transactions_history_sizing
Maximum number of rows per thread in table EVENTS_TRANSACTIONS_HISTORY.
Definition: pfs_server.h:278
bool m_consumer_events_waits_history_long_enabled
Definition: pfs_server.h:140
bool m_consumer_events_statements_cpu_enabled
Definition: pfs_server.h:131
ulong m_logger_class_sizing
Maximum number of instrumented logger classes.
Definition: pfs_server.h:309
long m_cond_sizing
Maximum number of instrumented cond instances.
Definition: pfs_server.h:208
long m_max_digest_length
Definition: pfs_server.h:313
PFS_sizing_hints m_hints
Sizing hints, for auto tuning.
Definition: pfs_server.h:323
ulong m_thread_class_sizing
Maximum number of instrumented thread classes.
Definition: pfs_server.h:173
ulong m_error_sizing
Maximum number of error instrumented.
Definition: pfs_server.h:320
ulong m_statement_class_sizing
Maximum number of instrumented statement classes.
Definition: pfs_server.h:266
long m_mutex_sizing
Maximum number of instrumented mutex instances.
Definition: pfs_server.h:198
bool m_consumer_events_waits_history_enabled
Definition: pfs_server.h:139
ulong m_statement_stack_sizing
Maximum size of statement stack.
Definition: pfs_server.h:285
char * m_pfs_instrument
Default instrument configuration option.
Definition: pfs_server.h:146
char * m_pfs_meter
Default meter instrument configuration option.
Definition: pfs_server.h:149
long m_setup_actor_sizing
Maximum number of rows in table SETUP_ACTORS.
Definition: pfs_server.h:244
long m_events_statements_history_sizing
Maximum number of rows per thread in table EVENTS_STATEMENTS_HISTORY.
Definition: pfs_server.h:268
long m_table_lock_stat_sizing
Maximum number of lock statistics collected for tables.
Definition: pfs_server.h:183
long m_thread_sizing
Maximum number of instrumented thread instances.
Definition: pfs_server.h:213
char * m_pfs_logger
Default logger instrument configuration option.
Definition: pfs_server.h:152
long m_host_sizing
Maximum number of rows in table HOSTS.
Definition: pfs_server.h:248
ulong m_stage_class_sizing
Maximum number of instrumented stage classes.
Definition: pfs_server.h:257
long m_table_sizing
Maximum number of instrumented table handles.
Definition: pfs_server.h:218
bool m_consumer_global_instrumentation_enabled
Definition: pfs_server.h:141
bool m_consumer_events_transactions_current_enabled
Definition: pfs_server.h:135
ulong m_cond_class_sizing
Maximum number of instrumented cond classes.
Definition: pfs_server.h:168
bool m_consumer_statement_digest_enabled
Definition: pfs_server.h:143
Sizing hints, from the server configuration.
Definition: pfs_server.h:110
ulong m_table_definition_cache
Value of Sys_table_def_size.
Definition: pfs_server.h:112
ulong m_max_connections
Value of Sys_max_connections.
Definition: pfs_server.h:116
ulong m_table_open_cache
Value of Sys_table_cache_size.
Definition: pfs_server.h:114
long m_max_prepared_stmt_count
Value of Sys_max_prepared_stmt_count.
Definition: pfs_server.h:120
long m_open_files_limit
Value of Sys_open_files_limit.
Definition: pfs_server.h:118
Entry point for the performance schema interface.
Definition: psi_cond.h:46
Entry point for the performance schema interface.
Definition: psi_data_lock.h:82
Entry point for the performance schema interface.
Definition: psi_error.h:59
Entry point for the performance schema interface.
Definition: psi_file.h:66
Entry point for the performance schema interface.
Definition: psi_idle.h:60
Entry point for the performance schema interface.
Definition: psi_logger_client.h:46
Entry point for the performance schema interface.
Definition: psi_mdl.h:76
Entry point for the performance schema interface.
Definition: psi_memory.h:85
Entry point for the performance schema interface.
Definition: psi_metric.h:46
Entry point for the performance schema interface.
Definition: psi_mutex.h:46
Entry point for the performance schema interface.
Definition: psi_rwlock.h:53
Entry point for the performance schema interface.
Definition: psi_socket.h:52
Entry point for the performance schema interface.
Definition: psi_stage.h:46
Entry point for the performance schema interface.
Definition: psi_statement.h:46
Entry point for the performance schema interface.
Definition: psi_system.h:60
Entry point for the performance schema interface.
Definition: psi_table.h:60
Entry point for the performance schema interface.
Definition: psi_thread.h:102
Entry point for the performance schema interface.
Definition: psi_tls_channel.h:46
Entry point for the performance schema interface.
Definition: psi_transaction.h:60