MySQL 9.1.0
Source Code Documentation
mysql_metric.h File Reference

Instrumentation helpers for metrics. More...

#include "my_compiler.h"
#include "my_psi_config.h"
#include "mysql/psi/psi_metric.h"
#include "my_inttypes.h"
#include "pfs_metric_provider.h"

Go to the source code of this file.

Macros

#define mysql_meter_register(P1, P2)   inline_mysql_meter_register(P1, P2)
 Registration of meters, each with its metrics. More...
 
#define mysql_meter_unregister(P1, P2)   inline_mysql_meter_unregister(P1, P2)
 Meter unregistration. More...
 
#define mysql_meter_notify_register(P1)   inline_mysql_meter_notify_register(P1)
 Registration of meter change notification callback. More...
 
#define mysql_meter_notify_unregister(P1)    inline_mysql_meter_notify_unregister(P1)
 Unregistration of meter change notification callback. More...
 
#define mysql_meter_notify_send(P1, P2)   inline_mysql_meter_notify_send(P1, P2)
 Send meter change notification through registered callback. More...
 

Functions

static void inline_mysql_meter_register (PSI_meter_info_v1 *info, size_t count)
 
static void inline_mysql_meter_unregister (PSI_meter_info_v1 *info, size_t count)
 
static void inline_mysql_meter_notify_register (meter_registration_changes_v1_t callback)
 
static void inline_mysql_meter_notify_unregister (meter_registration_changes_v1_t callback)
 
static void inline_mysql_meter_notify_send (const char *meter, MeterNotifyType change)
 

Detailed Description

Instrumentation helpers for metrics.