MySQL 8.4.2
Source Code Documentation
|
The performance schema implementation of server metrics instrument service. More...
#include "storage/perfschema/pfs_metrics_service_imp.h"
#include <map>
#include <string>
#include "mysql/psi/mysql_rwlock.h"
#include "pfs_column_values.h"
#include "pfs_global.h"
#include "pfs_instr_class.h"
Functions | |
static bool | invalid_metric_name (const char *name, size_t max_len) |
static bool | invalid_metric_definition (PSI_metric_info_v1 *metric) |
static bool | invalid_meter_definition (PSI_meter_info_v1 *metric) |
void | initialize_mysql_server_metrics_instrument_service () |
void | cleanup_mysql_server_metrics_instrument_service () |
static int | build_prefix (const LEX_CSTRING *prefix, const char *optional, char *output, size_t *output_length) |
static void | pfs_register_metrics_v1 (PSI_metric_info_v1 *info, size_t count, const char *meter) |
void | pfs_register_meters_v1 (PSI_meter_info_v1 *info, size_t count) |
static void | pfs_unregister_metrics_v1 (PSI_metric_info_v1 *info, size_t count) |
void | pfs_unregister_meters_v1 (PSI_meter_info_v1 *info, size_t count) |
void | pfs_register_change_notification_v1 (meter_registration_changes_v1_t callback) |
void | pfs_unregister_change_notification_v1 (meter_registration_changes_v1_t callback) |
void | pfs_send_change_notification_v1 (const char *meter, MeterNotifyType change) |
The performance schema implementation of server metrics instrument service.
|
static |
void cleanup_mysql_server_metrics_instrument_service | ( | ) |
void initialize_mysql_server_metrics_instrument_service | ( | ) |
|
static |
|
static |
|
static |
void pfs_register_change_notification_v1 | ( | meter_registration_changes_v1_t | callback | ) |
void pfs_register_meters_v1 | ( | PSI_meter_info_v1 * | info, |
size_t | count | ||
) |
|
static |
void pfs_send_change_notification_v1 | ( | const char * | meter, |
MeterNotifyType | change | ||
) |
void pfs_unregister_change_notification_v1 | ( | meter_registration_changes_v1_t | callback | ) |
void pfs_unregister_meters_v1 | ( | PSI_meter_info_v1 * | info, |
size_t | count | ||
) |
|
static |
|
static |
const mysql_service_psi_metric_v1_t imp_performance_schema_psi_metric_v1 |
|
static |
|
static |
|
static |
|
static |
mysql_rwlock_t LOCK_pfs_meter_notify |
mysql_rwlock_t LOCK_pfs_metrics |
|
constexpr |
bool server_metrics_instrument_service_initialized = false |