性能模式参数可以在服务器启动时在命令行或选项文件中指定,以配置性能模式工具和使用者。运行时配置在许多情况下也是可能的(参见第27.4节,“性能模式运行时配置”),但如果运行时配置太晚,无法影响在启动过程中已经初始化的工具,则必须使用启动配置。
性能模式使用者和工具可以在启动时使用以下语法进行配置。有关其他详细信息,请参见第27.3节,“性能模式启动配置”.
——performance-schema-consumer
consumer_name
=价值
配置一个性能模式使用者。消费者姓名
setup_consumers
表使用下划线,但对于在启动时设置的用户,名称中的破折号和下划线是等价的。本节稍后将详细介绍配置单个使用者的选项。——performance-schema-instrument =
instrument_name
=价值
配置一个Performance Schema工具。该名称可以作为模式来配置匹配该模式的工具。
以下项目用于配置单个消费者:
——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
消费者。