30#include "mysqld_error.h"
106 static void visit_global(
bool with_hosts,
bool with_users,
bool with_accounts,
107 bool with_threads,
bool with_THDs,
253 bool visit_class =
true);
263 bool visit_class =
true);
280 uint index [[maybe_unused]]) {}
A concrete connection visitor that aggregates statement statistics for all events.
Definition: pfs_visitor.h:393
PFS_statement_stat m_stat
Statement statistic collected.
Definition: pfs_visitor.h:405
A concrete connection visitor that aggregates wait statistics for all events.
Definition: pfs_visitor.h:329
PFS_single_stat m_stat
Wait statistic collected.
Definition: pfs_visitor.h:341
A concrete connection visitor that aggregates Error statistics for a given event_name.
Definition: pfs_visitor.h:436
uint m_error_index
index of a specific error.
Definition: pfs_visitor.h:450
PFS_error_single_stat m_stat
Error statistic collected.
Definition: pfs_visitor.h:452
uint m_index
EVENT_NAME instrument index.
Definition: pfs_visitor.h:448
Iterator over groups of connections.
Definition: pfs_visitor.h:95
static void visit_thread(PFS_thread *thread, PFS_connection_visitor *visitor)
Visit a thread or connection.
Definition: pfs_visitor.h:143
static void visit_THD(THD *thd, PFS_connection_visitor *visitor)
Visit THD.
Definition: pfs_visitor.h:153
A concrete connection visitor that aggregates memory statistics for a given event_name.
Definition: pfs_visitor.h:478
uint m_index
EVENT_NAME instrument index.
Definition: pfs_visitor.h:490
PFS_memory_monitoring_stat m_stat
Statement statistic collected.
Definition: pfs_visitor.h:492
A concrete connection visitor that aggregates stage statistics.
Definition: pfs_visitor.h:351
PFS_stage_stat m_stat
Stage statistic collected.
Definition: pfs_visitor.h:365
uint m_index
EVENT_NAME instrument index.
Definition: pfs_visitor.h:363
A concrete connection visitor that aggregates connection statistics.
Definition: pfs_visitor.h:459
PFS_connection_stat m_stat
Connection statistic collected.
Definition: pfs_visitor.h:471
A concrete connection visitor that aggregates statement statistics for a given event_name.
Definition: pfs_visitor.h:372
uint m_index
EVENT_NAME instrument index.
Definition: pfs_visitor.h:384
PFS_statement_stat m_stat
Statement statistic collected.
Definition: pfs_visitor.h:386
A concrete connection visitor that aggregates status variables.
Definition: pfs_visitor.h:499
System_status_var * m_status_vars
Definition: pfs_visitor.h:512
A concrete connection visitor that aggregates transaction statistics for a given event_name.
Definition: pfs_visitor.h:415
uint m_index
EVENT_NAME instrument index.
Definition: pfs_visitor.h:427
PFS_transaction_stat m_stat
Transaction statistic collected.
Definition: pfs_visitor.h:429
Interface class to visit groups of connections.
Definition: pfs_visitor.h:73
virtual void visit_global()
Visit all connections.
Definition: pfs_visitor.h:78
virtual void visit_user(PFS_user *)
Visit all connections of a user.
Definition: pfs_visitor.h:84
virtual void visit_host(PFS_host *)
Visit all connections of a host.
Definition: pfs_visitor.h:80
virtual void visit_account(PFS_account *)
Visit all connections of a user+host.
Definition: pfs_visitor.h:82
virtual void visit_thread(PFS_thread *)
Visit a thread.
Definition: pfs_visitor.h:86
virtual void visit_THD(THD *)
Visit a THD associated with a thread.
Definition: pfs_visitor.h:88
PFS_connection_visitor()=default
virtual ~PFS_connection_visitor()=default
A concrete connection visitor that aggregates wait statistics for a given event_name.
Definition: pfs_visitor.h:308
uint m_index
EVENT_NAME instrument index.
Definition: pfs_visitor.h:320
PFS_single_stat m_stat
Wait statistic collected.
Definition: pfs_visitor.h:322
A concrete object visitor that aggregates index I/O statistics.
Definition: pfs_visitor.h:589
PFS_table_io_stat m_stat
Index I/O statistic collected.
Definition: pfs_visitor.h:597
A concrete instance visitor that aggregates file wait and byte count statistics.
Definition: pfs_visitor.h:650
PFS_file_io_stat m_file_io_stat
Wait and byte count statistics collected.
Definition: pfs_visitor.h:658
Iterator over groups of instrumentation point instances.
Definition: pfs_visitor.h:192
A concrete instance visitor that aggregates socket wait and byte count statistics.
Definition: pfs_visitor.h:635
PFS_socket_io_stat m_socket_io_stat
Wait and byte count statistics collected.
Definition: pfs_visitor.h:643
Interface class to visit groups of instrumentation point instances.
Definition: pfs_visitor.h:162
virtual void visit_rwlock(PFS_rwlock *)
Visit a rwlock instance.
Definition: pfs_visitor.h:179
PFS_instance_visitor()=default
virtual ~PFS_instance_visitor()=default
virtual void visit_mutex(PFS_mutex *)
Visit a mutex instance.
Definition: pfs_visitor.h:177
virtual void visit_mutex_class(PFS_mutex_class *)
Visit a mutex class.
Definition: pfs_visitor.h:167
virtual void visit_file_class(PFS_file_class *)
Visit a file class.
Definition: pfs_visitor.h:173
virtual void visit_cond_class(PFS_cond_class *)
Visit a cond class.
Definition: pfs_visitor.h:171
virtual void visit_rwlock_class(PFS_rwlock_class *)
Visit a rwlock class.
Definition: pfs_visitor.h:169
virtual void visit_cond(PFS_cond *)
Visit a cond instance.
Definition: pfs_visitor.h:181
virtual void visit_socket(PFS_socket *)
Visit a socket instance.
Definition: pfs_visitor.h:185
virtual void visit_socket_class(PFS_socket_class *)
Visit a socket class.
Definition: pfs_visitor.h:175
virtual void visit_file(PFS_file *)
Visit a file instance.
Definition: pfs_visitor.h:183
A concrete instance visitor that aggregates wait statistics.
Definition: pfs_visitor.h:519
PFS_single_stat m_stat
Wait statistic collected.
Definition: pfs_visitor.h:535
Iterator over groups of SQL objects.
Definition: pfs_visitor.h:291
Interface class to visit groups of SQL objects.
Definition: pfs_visitor.h:270
PFS_object_visitor()=default
virtual void visit_table_share_index(PFS_table_share *, uint index)
Visit a table share index.
Definition: pfs_visitor.h:279
virtual ~PFS_object_visitor()=default
virtual void visit_table_index(PFS_table *, uint index)
Visit a table index.
Definition: pfs_visitor.h:284
virtual void visit_global()
Visit global data.
Definition: pfs_visitor.h:275
virtual void visit_table_share(PFS_table_share *)
Visit a table share.
Definition: pfs_visitor.h:277
virtual void visit_table(PFS_table *)
Visit a table.
Definition: pfs_visitor.h:282
A concrete object visitor that aggregates object wait statistics.
Definition: pfs_visitor.h:542
PFS_single_stat m_stat
Object wait statistic collected.
Definition: pfs_visitor.h:551
A concrete object visitor that aggregates table I/O statistics.
Definition: pfs_visitor.h:574
PFS_table_io_stat m_stat
Table I/O statistic collected.
Definition: pfs_visitor.h:582
A concrete object visitor that aggregates table I/O wait statistics.
Definition: pfs_visitor.h:558
PFS_single_stat m_stat
Table I/O wait statistic collected.
Definition: pfs_visitor.h:567
A concrete object visitor that aggregates table lock statistics.
Definition: pfs_visitor.h:620
PFS_table_lock_stat m_stat
Table lock statistic collected.
Definition: pfs_visitor.h:628
A concrete object visitor that aggregates table lock wait statistics.
Definition: pfs_visitor.h:604
PFS_single_stat m_stat
Table lock wait statistic collected.
Definition: pfs_visitor.h:613
For each client connection we create a separate thread with THD serving as a thread/connection descri...
Definition: sql_lexer_thd.h:36
Header for compiler-dependent features.
char * user
Definition: mysqladmin.cc:66
const char * host
Definition: mysqladmin.cc:65
Statistics (declarations).
static const LEX_CSTRING pfs
Definition: sql_show_processlist.cc:66
Per account statistics.
Definition: pfs_account.h:67
Instrumentation metadata for a condition.
Definition: pfs_instr_class.h:383
Instrumented condition implementation.
Definition: pfs_instr.h:162
A connection slice, an arbitrary grouping of several connections.
Definition: pfs_con_slice.h:54
Connections statistics.
Definition: pfs_stat.h:1227
Instrumentation metadata for an error.
Definition: pfs_instr_class.h:635
Statistics for a server error.
Definition: pfs_stat.h:495
Instrumentation metadata for a file.
Definition: pfs_instr_class.h:644
Statistics for FILE I/O.
Definition: pfs_stat.h:272
Instrumented File and FILE implementation.
Definition: pfs_instr.h:179
Per host statistics.
Definition: pfs_host.h:64
Information for all instrumentation.
Definition: pfs_instr_class.h:248
Instrumentation metadata for a memory.
Definition: pfs_instr_class.h:681
Definition: pfs_stat.h:991
Instrumentation metadata for a mutex.
Definition: pfs_instr_class.h:363
Instrumented mutex implementation.
Definition: pfs_instr.h:103
Instrumentation metadata for a read write lock.
Definition: pfs_instr_class.h:373
Instrumented rwlock implementation.
Definition: pfs_instr.h:129
Single statistic.
Definition: pfs_stat.h:52
Instrumentation metadata for a socket.
Definition: pfs_instr_class.h:673
Statistics for SOCKET I/O.
Definition: pfs_stat.h:839
Instrumented socket implementation.
Definition: pfs_instr.h:289
Instrumentation metadata for a stage.
Definition: pfs_instr_class.h:652
Statistics for stage usage.
Definition: pfs_stat.h:323
Instrumentation metadata for a statement.
Definition: pfs_instr_class.h:663
Statistics for statement usage.
Definition: pfs_stat.h:376
Single table I/O statistic.
Definition: pfs_stat.h:648
Statistics for table locks.
Definition: pfs_stat.h:710
Instrumentation metadata for a table share.
Definition: pfs_instr_class.h:513
Instrumented table implementation.
Definition: pfs_instr.h:195
Instrumented thread implementation.
Definition: pfs_instr.h:375
Instrumentation metadata for a transaction.
Definition: pfs_instr_class.h:666
Statistics for transaction usage.
Definition: pfs_stat.h:459
Per user statistics.
Definition: pfs_user.h:63
Per thread status variables.
Definition: system_variables.h:525