WL#10622: MySQL GCS: Instrument threads in GCS/XCom

Affects: Server-8.0   —   Status: Complete

Executive Summary
=================

This worklog will instrument the GCS and XCom threads and expose them
automatically in P_S tables metrics. It is also a requirement so that we
do further instrumentation in XCom and GCS, such as mutexes and condition
variables, as well as memory usage.

Since XCom is currently single threaded, and executed under a GCS thread,
this worklog will focus on modifying the source code of GCS, using the
Server's Performance Schema Interface to instrument it and declaring and
registering the keys for the instrumented GCS threads.


User Stories
============

-As a MySQL DBA I want to know how many and which threads are being executed
in GCS, so that I am able to determine if there are any performance issues
due to the number of active threads.

-As a MySQL DBA I want to know which events have been executed by each
instrumented thread in GCS, so that I am able to determine if GCS is executing
correctly.

-As a MySQL GCS dev I want to have instrumented GCS threads, so I can
instrument other code elements executed by those threads in order to achieve
more detailed monitorization of GCS.