This is the very first post in the series of Performance Schema Implementation Internals. This series is for MySQL Developers to understand implementation of Performance Schema. For user point of view of performance Schema, please refer to mysql documentation link : http://dev.mysql.com/doc/refman/5.7/en/performance-schema-quick-start.html
This post talks about the mechanism to register instruments in Performance Schema (referred as P_S from hereon) so that their statistics could be collected at runtime.
To understand this, lets first understand different instrument classes in P_S.
Instrument Classes in P_S:
An enum PFS_class_type is there to keep track of all possible classes of instruments.
enum PFS_class_type
{
…