Chapter 27 MySQL Performance Schema

Table of Contents

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.4.1 Performance Schema Event Timing
27.4.2 Performance Schema Event Filtering
27.4.3 Event Pre-Filtering
27.4.4 Pre-Filtering by Instrument
27.4.5 Pre-Filtering by Object
27.4.6 Pre-Filtering by Thread
27.4.7 Pre-Filtering by Consumer
27.4.8 Example Consumer Configurations
27.4.9 Naming Instruments or Consumers for Filtering Operations
27.4.10 Determining What Is Instrumented
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.12.1 Performance Schema Table Reference
27.12.2 Performance Schema Setup Tables
27.12.3 Performance Schema Instance Tables
27.12.4 Performance Schema Wait Event Tables
27.12.5 Performance Schema Stage Event Tables
27.12.6 Performance Schema Statement Event Tables
27.12.7 Performance Schema Transaction Tables
27.12.8 Performance Schema Connection Tables
27.12.9 Performance Schema Connection Attribute Tables
27.12.10 Performance Schema User-Defined Variable Tables
27.12.11 Performance Schema Replication Tables
27.12.12 Performance Schema NDB Cluster Tables
27.12.13 Performance Schema Lock Tables
27.12.14 Performance Schema System Variable Tables
27.12.15 Performance Schema Status Variable Tables
27.12.16 Performance Schema Thread Pool Tables
27.12.17 Performance Schema Firewall Tables
27.12.18 Performance Schema Keyring Tables
27.12.19 Performance Schema Clone Tables
27.12.20 Performance Schema Summary Tables
27.12.21 Performance Schema Miscellaneous Tables
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.19.1 Query Profiling Using Performance Schema
27.19.2 Obtaining Parent Event Information
27.20 Restrictions on Performance Schema

The MySQL Performance Schema is a feature for monitoring MySQL Server execution at a low level. The Performance Schema has these characteristics:

The Performance Schema is intended to provide access to useful information about server execution while having minimal impact on server performance. The implementation follows these design goals:

Note注意

The MySQL sys schema is a set of objects that provides convenient access to data collected by the Performance Schema. The sys schema is installed by default. For usage instructions, see Chapter 28, MySQL sys Schema.

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 Schema