MySQL 9.0.0
Source Code Documentation

Instrumentation metadata for a metric. More...

#include <pfs_instr_class.h>

Inheritance diagram for PFS_metric_class:
[legend]

Public Attributes

pfs_lock m_lock
 
const char * m_metric {nullptr}
 Metric name with length. More...
 
uint m_metric_length {0}
 
const char * m_group {nullptr}
 Metric group with length. More...
 
uint m_group_length {0}
 
const char * m_unit {nullptr}
 Metric unit with length. More...
 
uint m_unit_length {0}
 
const char * m_description {nullptr}
 Metric description with length. More...
 
uint m_description_length {0}
 
MetricNumType m_num_type {MetricNumType::METRIC_INTEGER}
 
MetricOTELType m_metric_type {MetricOTELType::ASYNC_COUNTER}
 
PSI_metric_key m_key {0}
 
measurement_callback_t m_measurement_callback
 
void * m_measurement_context {nullptr}
 
- Public Attributes inherited from PFS_instr_class
PFS_class_type m_type
 Class type. More...
 
bool m_enabled
 True if this instrument is enabled. More...
 
bool m_timed
 True if this instrument is timed. More...
 
uint m_flags
 Instrument flags. More...
 
uint m_enforced_flags
 Instrument enforced flags. More...
 
int m_volatility
 Volatility index. More...
 
uint m_event_name_index
 Instrument name index. More...
 
PFS_instr_name m_name
 Instrument name. More...
 
char * m_documentation
 Documentation. More...
 

Additional Inherited Members

- Public Member Functions inherited from PFS_instr_class
bool is_singleton () const
 
bool is_mutable () const
 
bool is_progress () const
 
bool is_shared_exclusive () const
 
bool is_priority () const
 
bool is_transferable () const
 
bool is_user () const
 
bool is_system_thread () const
 
bool is_global () const
 
bool has_seqnum () const
 
bool has_auto_seqnum () const
 
bool has_default_memory_cnt () const
 
bool has_enforced_memory_cnt () const
 
bool is_disabled () const
 
bool is_untimed () const
 
void set_enforced_flags (uint flags)
 
void enforce_valid_flags (uint allowed_flags)
 
bool is_deferred () const
 
bool can_be_timed () const
 
bool can_be_enforced () const
 
- Static Public Member Functions inherited from PFS_instr_class
static void set_enabled (PFS_instr_class *pfs, bool enabled)
 
static void set_timed (PFS_instr_class *pfs, bool timed)
 

Detailed Description

Instrumentation metadata for a metric.

Member Data Documentation

◆ m_description

const char* PFS_metric_class::m_description {nullptr}

Metric description with length.

◆ m_description_length

uint PFS_metric_class::m_description_length {0}

◆ m_group

const char* PFS_metric_class::m_group {nullptr}

Metric group with length.

◆ m_group_length

uint PFS_metric_class::m_group_length {0}

◆ m_key

PSI_metric_key PFS_metric_class::m_key {0}

◆ m_lock

pfs_lock PFS_metric_class::m_lock

◆ m_measurement_callback

measurement_callback_t PFS_metric_class::m_measurement_callback

◆ m_measurement_context

void* PFS_metric_class::m_measurement_context {nullptr}

◆ m_metric

const char* PFS_metric_class::m_metric {nullptr}

Metric name with length.

◆ m_metric_length

uint PFS_metric_class::m_metric_length {0}

◆ m_metric_type

MetricOTELType PFS_metric_class::m_metric_type {MetricOTELType::ASYNC_COUNTER}

◆ m_num_type

MetricNumType PFS_metric_class::m_num_type {MetricNumType::METRIC_INTEGER}

◆ m_unit

const char* PFS_metric_class::m_unit {nullptr}

Metric unit with length.

◆ m_unit_length

uint PFS_metric_class::m_unit_length {0}

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