25.14 性能架构命令选项
可以在服务器启动时在命令行上或在选项文件中指定性能模式参数,以配置性能模式工具和使用者。在许多情况下,也可以进行运行时配置(请参见第 25.4 节“性能架构运行时配置”),但是如果运行时配置太晚而无法影响在启动过程中已经初始化的仪器,则必须使用启动配置。
可以在启动时使用以下语法配置 Performance Schema 使用者和工具。有关更多详细信息,请参见第 25.3 节“性能架构启动配置”。
配置性能架构使用者。 setup_consumerstable 中的使用者名称使用下划线,但是对于在启动时设置的使用者,名称中的短划线和下划线是等效的。本节稍后将详细介绍用于配置单个使用者的选项。
配置性能架构工具。可以将名称作为模式来配置与该模式匹配的仪器。
以下各项配置个人使用者:
配置events-stages-current
使用者。
配置events-stages-history
使用者。
配置events-stages-history-long
使用者。
配置events-statements-current
使用者。
配置events-statements-history
使用者。
配置events-statements-history-long
使用者。
配置性能架构events-transactions-current
使用者。
配置性能架构events-transactions-history
使用者。
配置性能架构events-transactions-history-long
使用者。
配置events-waits-current
使用者。
配置events-waits-history
使用者。
配置events-waits-history-long
使用者。
配置global-instrumentation
使用者。
配置statements-digest
使用者。
配置thread-instrumentation
使用者。