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