- 29.12.1 性能模式表参考29.12.1 Performance Schema Table Reference
- 29.12.2 性能模式设置表29.12.2 Performance Schema Setup Tables
- 29.12.3 性能模式实例表29.12.3 Performance Schema Instance Tables
- 29.12.4 性能模式等待事件表29.12.4 Performance Schema Wait Event Tables
- 29.12.5 性能模式阶段事件表29.12.5 Performance Schema Stage Event Tables
- 29.12.6 性能模式语句事件表29.12.6 Performance Schema Statement Event Tables
- 29.12.7 性能模式事务表29.12.7 Performance Schema Transaction Tables
- 29.12.8 性能模式连接表29.12.8 Performance Schema Connection Tables
- 29.12.9 性能模式连接属性表29.12.9 Performance Schema Connection Attribute Tables
- 29.12.10 性能模式用户定义变量表29.12.10 Performance Schema User-Defined Variable Tables
- 29.12.11 性能模式复制表29.12.11 Performance Schema Replication Tables
- 29.12.12 性能模式 NDB 集群表29.12.12 Performance Schema NDB Cluster Tables
- 29.12.13 性能模式锁表29.12.13 Performance Schema Lock Tables
- 29.12.14 性能模式系统变量表29.12.14 Performance Schema System Variable Tables
- 29.12.15 性能模式状态变量表29.12.15 Performance Schema Status Variable Tables
- 29.12.16 性能模式线程池表29.12.16 Performance Schema Thread Pool Tables
- 29.12.17 性能模式防火墙表29.12.17 Performance Schema Firewall Tables
- 29.12.18 性能模式密钥环表29.12.18 Performance Schema Keyring Tables
- 29.12.19 性能模式克隆表29.12.19 Performance Schema Clone Tables
- 29.12.20 性能模式汇总表29.12.20 Performance Schema Summary Tables
- 29.12.21 性能模式遥测表29.12.21 Performance Schema Telemetry Tables
- 29.12.22 性能模式其他表29.12.22 Performance Schema Miscellaneous Tables
performance_schema 数据库中的表可分为如下几类:Tables in the performance_schema database can
be grouped as follows:
设置表。这些表用于配置和显示监控特性。Setup tables. These tables are used to configure and display monitoring characteristics.
当前事件表。
events_waits_current表包含每个线程的最新事件。其他类似的表包含事件层次结构中不同级别的当前事件:events_stages_current用于阶段事件,events_statements_current用于语句事件,events_transactions_current用于事务事件。Current events tables. Theevents_waits_currenttable contains the most recent event for each thread. Other similar tables contain current events at different levels of the event hierarchy:events_stages_currentfor stage events,events_statements_currentfor statement events, andevents_transactions_currentfor transaction events.历史表。这些表的结构与当前事件表相同,但包含更多行。例如,对于等待事件,
events_waits_history表包含每个线程最近的 10 个事件。events_waits_history_long包含最近的 10,000 个事件。对于阶段、语句和事务历史,也存在其他类似的表。History tables. These tables have the same structure as the current events tables, but contain more rows. For example, for wait events,events_waits_historytable contains the most recent 10 events per thread.events_waits_history_longcontains the most recent 10,000 events. Other similar tables exist for stage, statement, and transaction histories.要更改历史表的大小,请在服务器启动时设置适当的系统变量。例如,要设置等待事件历史表的大小,请设置
performance_schema_events_waits_history_size和performance_schema_events_waits_history_long_size。To change the sizes of the history tables, set the appropriate system variables at server startup. For example, to set the sizes of the wait event history tables, setperformance_schema_events_waits_history_sizeandperformance_schema_events_waits_history_long_size.汇总表。这些表包含按事件组聚合的信息,包括已从历史表中丢弃的事件。Summary tables. These tables contain information aggregated over groups of events, including those that have been discarded from the history tables.
实例表。这些表记录哪些类型的对象已被检测。被检测的对象在服务器使用时会生成事件。这些表提供事件名称以及说明性注释或状态信息。Instance tables. These tables document what types of objects are instrumented. An instrumented object, when used by the server, produces an event. These tables provide event names and explanatory notes or status information.
杂项表。这些不属于其他任何表组。Miscellaneous tables. These do not fall into any of the other table groups.