MySQL 9.0.0
Source Code Documentation
PSI_metric_info_v1 Struct Reference

Define a metric source, storing char pointers requires the original strings to be valid for entire lifetime of a metric (global variable), or the strings themselves to be string literals (hardcoded), the advantage is no (de)allocation code is needed here. More...

#include <psi_metric_bits.h>

Public Attributes

const char * m_metric
 
const char * m_unit
 
const char * m_description
 
MetricOTELType m_metric_type
 
MetricNumType m_num_type
 
unsigned int m_flags
 Instrument flags. More...
 
PSI_metric_key m_key
 
measurement_callback_t m_measurement_callback
 
void * m_measurement_context
 

Detailed Description

Define a metric source, storing char pointers requires the original strings to be valid for entire lifetime of a metric (global variable), or the strings themselves to be string literals (hardcoded), the advantage is no (de)allocation code is needed here.

Member Data Documentation

◆ m_description

const char* PSI_metric_info_v1::m_description

◆ m_flags

unsigned int PSI_metric_info_v1::m_flags

Instrument flags.

◆ m_key

PSI_metric_key PSI_metric_info_v1::m_key

◆ m_measurement_callback

measurement_callback_t PSI_metric_info_v1::m_measurement_callback

◆ m_measurement_context

void* PSI_metric_info_v1::m_measurement_context

◆ m_metric

const char* PSI_metric_info_v1::m_metric

◆ m_metric_type

MetricOTELType PSI_metric_info_v1::m_metric_type

◆ m_num_type

MetricNumType PSI_metric_info_v1::m_num_type

◆ m_unit

const char* PSI_metric_info_v1::m_unit

The documentation for this struct was generated from the following file: