MySQL 26.10.0
Source Code Documentation
health_monitor_process_stats_mapping.h File Reference
#include <mysql/components/library_mysys/system_info.h>
#include <cstdint>
#include <ctime>
#include <utility>
#include <vector>
#include "health_monitor_system_bits.h"

Go to the source code of this file.

Classes

struct  hm::System_process_stats_row
 

Namespaces

namespace  hm
 

Enumerations

enum class  hm::Process_threads_conversion_result { hm::success , hm::degraded , hm::failure }
 
enum class  hm::Process_thread_metric {
  hm::user_time , hm::system_time , hm::child_user_time , hm::child_system_time ,
  hm::thread_count , hm::virtual_bytes , hm::resident_bytes , hm::resident_limit_bytes ,
  hm::processor , hm::block_io_delay , hm::guest_time , hm::child_guest_time ,
  hm::read_bytes , hm::write_bytes
}
 

Functions

bool hm::update_process_threads_error_state (Process_threads_conversion_result result, bool &error_state)
 Update process thread warning suppression after conversion. More...
 
Process_threads_conversion_result hm::convert_process_threads_snapshot (const mysql::system_info::Process_threads_snapshot &snapshot, time_t timestamp, std::vector< System_Process_Stats > &output)
 Convert process threads snapshot into multiple Health Monitor process records. More...
 
System_process_stats_row hm::make_system_process_stats_row (const System_Process_Stats &record)
 Convert a process thread record into a Performance Schema table row. More...
 
bool hm::system_process_stats_column_is_null (const System_process_stats_row &row, unsigned int index)
 Determine whether a process thread metric column is NULL. More...
 
bool hm::process_thread_metric_available (const System_Process_Stats &record, const Process_thread_metric metric)
 Determine whether a process thread metric is available. More...
 
template<typename Reader >
bool hm::select_latest_process_thread_metric (const int count, const Process_thread_metric metric, Reader &&reader, System_Process_Stats &output)
 Select the newest record that contains a process thread metric. More...
 
template<typename Delivery >
bool hm::deliver_process_thread_metric (const System_Process_Stats &record, const Process_thread_metric metric, Delivery &&delivery)
 Deliver one process thread metric. More...