本文共 2359 字,大约阅读时间需要 7 分钟。
官方文档地址:
27.1 Performance Schema Quick Start
27.2 Performance Schema Build Configuration 27.3 Performance Schema Startup Configuration 27.4 Performance Schema Runtime Configuration 27.5 Performance Schema Queries 27.6 Performance Schema Instrument Naming Conventions 27.7 Performance Schema Status Monitoring 27.8 Performance Schema Atom and Molecule Events 27.9 Performance Schema Tables for Current and Historical Events 27.10 Performance Schema Statement Digests and Sampling 27.11 Performance Schema General Table Characteristics 27.12 Performance Schema Table Descriptions 27.13 Performance Schema Option and Variable Reference 27.14 Performance Schema Command Options 27.15 Performance Schema System Variables 27.16 Performance Schema Status Variables 27.17 The Performance Schema Memory-Allocation Model 27.18 Performance Schema and Plugins 27.19 Using the Performance Schema to Diagnose Problems 27.20 Restrictions on Performance SchemaMySQL 性能模式是一种用于在较低级别监视 MySQL Server 执行的功能。性能模式具有以下特征:
PERFORMANCE_SCHEMA
存储引擎和performance_schema
数据库来实现的。性能模式主要关注性能数据。这与INFORMATION_SCHEMA
用于检查元数据的有所不同。Performance Schema
表被认为是服务器本地的,对它们的更改不会被复制或写入二进制日志。PERFORMANCE_SCHEMA
存储引擎使用服务器源代码中的“检测点”收集事件数据。performance_schema
数据库中的表中 。这些表可以像其他表一样使用SELECT
语句进行查询。performance_schema
数据库中的表,可以动态修改性能模式的配置。配置更改会立即影响数据收集。性能模式旨在提供对有关服务器执行的有用信息的访问,同时对服务器性能的影响最小。该实现遵循以下设计目标:
EXPLAIN
所示)改变。注意
MySQLsys
模式是一组对象,可方便地访问由性能模式收集的数据。该sys
模式是默认安装的。有关用法说明,请参见 。
转载地址:http://nwjg.baihongyu.com/