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