MySQL 26.10.0
Source Code Documentation
system_info_platform.h File Reference
#include <chrono>
#include <cstdint>
#include <string_view>
#include <system_error>
#include "mysql/components/library_mysys/system_info.h"

Go to the source code of this file.

Namespaces

namespace  mysql
 
namespace  mysql::system_info
 
namespace  mysql::system_info::internal
 

Functions

Storage_snapshot mysql::system_info::internal::query_storage_devices_platform ()
 Collect Linux storage device metadata from procfs and sysfs. More...
 
Host_memory_snapshot mysql::system_info::internal::query_host_memory_platform ()
 Collect Linux host memory from procfs. More...
 
Host_cpu_snapshot mysql::system_info::internal::query_host_cpu_platform ()
 Collect cumulative Linux CPU times from /proc/stat. More...
 
Process_memory_snapshot mysql::system_info::internal::query_process_memory_platform ()
 Collect Linux process memory metadata. More...
 
Process_threads_snapshot mysql::system_info::internal::query_process_threads_platform ()
 Collect Linux thread metadata for the current process. More...
 
bool mysql::system_info::internal::cpu_ticks_to_milliseconds (uint64_t ticks, uint64_t ticks_per_second, std::chrono::milliseconds &milliseconds)
 Convert cumulative CPU ticks to whole milliseconds. More...
 
Filesystem_snapshot mysql::system_info::internal::validate_filesystem_snapshot (Filesystem_snapshot snapshot)
 Reject invalid available filesystem usage values. More...
 
Storage_snapshot mysql::system_info::internal::validate_storage_snapshot (Storage_snapshot snapshot)
 Reject invalid available storage device values. More...
 
Host_memory_snapshot mysql::system_info::internal::validate_host_memory_snapshot (Host_memory_snapshot snapshot)
 Reject invalid available host memory values. More...
 
Host_cpu_snapshot mysql::system_info::internal::validate_host_cpu_snapshot (Host_cpu_snapshot snapshot)
 Reject invalid available host CPU values. More...
 
Process_memory_snapshot mysql::system_info::internal::validate_process_memory_snapshot (Process_memory_snapshot snapshot)
 Reject invalid available process identity values. More...
 
Process_threads_snapshot mysql::system_info::internal::validate_process_threads_snapshot (Process_threads_snapshot snapshot)
 Reject invalid available process thread values. More...
 

Variables

Filesystem_snapshot mysql::system_info::internal::query_filesystem_platform (std::string_view path)
 Collect Linux filesystem identity and space metadata for one path. More...