MySQL 26.10.0
Source Code Documentation
system_info.h File Reference
#include <cassert>
#include <chrono>
#include <cstdint>
#include <optional>
#include <string>
#include <string_view>
#include <system_error>
#include <utility>
#include <vector>

Go to the source code of this file.

Classes

class  mysql::system_info::System_result< T >
 Result of collecting one system information capability. More...
 
struct  mysql::system_info::Filesystem_identity
 Stable identity of the filesystem that contains a monitored path. More...
 
struct  mysql::system_info::Filesystem_usage
 Capacity and space available to unprivileged processes, in bytes. More...
 
struct  mysql::system_info::Filesystem_snapshot
 Filesystem identity and usage collected for one monitored path. More...
 
struct  mysql::system_info::Storage_device
 Identity and kind of one storage device. More...
 
struct  mysql::system_info::Storage_inventory
 Storage devices visible at one collection point. More...
 
struct  mysql::system_info::Storage_device_capacity
 Capacity and hardware sector size of one storage device, in bytes. More...
 
struct  mysql::system_info::Storage_capacities
 Storage device capacities collected at one collection point. More...
 
struct  mysql::system_info::Storage_device_relationship
 Child and parent relationship between two storage devices. More...
 
struct  mysql::system_info::Storage_hierarchy
 Storage device relationships collected at one collection point. More...
 
struct  mysql::system_info::Storage_read_write_counters
 Cumulative read and write counters for one storage device. More...
 
struct  mysql::system_info::Storage_read_write_snapshot
 Storage read and write counters collected at one collection point. More...
 
struct  mysql::system_info::Storage_flush_counters
 Cumulative flush counters for one storage device. More...
 
struct  mysql::system_info::Storage_flush_snapshot
 Storage flush counters collected at one collection point. More...
 
struct  mysql::system_info::Storage_snapshot
 Storage capabilities collected at one collection point. More...
 
struct  mysql::system_info::Host_memory_info
 Portable host physical memory values, in bytes. More...
 
struct  mysql::system_info::Host_memory_breakdown
 Optional host memory breakdown values, in bytes. More...
 
struct  mysql::system_info::Swap_capacity_info
 Host swap capacity values, in bytes. More...
 
struct  mysql::system_info::Swap_activity_info
 Cumulative host swap activity, in bytes. More...
 
struct  mysql::system_info::Host_memory_snapshot
 Host memory capabilities collected at one collection point. More...
 
struct  mysql::system_info::Cpu_times
 Portable cumulative CPU times for one aggregate or logical CPU. More...
 
struct  mysql::system_info::Cpu_times_snapshot
 Portable CPU times collected at one collection point. More...
 
struct  mysql::system_info::Cpu_extended_times
 Optional cumulative CPU times without portable equivalents. More...
 
struct  mysql::system_info::Cpu_extended_snapshot
 Extended CPU times collected at one collection point. More...
 
struct  mysql::system_info::Host_cpu_snapshot
 Host CPU capabilities collected at one collection point. More...
 
struct  mysql::system_info::Process_identity
 Identity of the current process. More...
 
struct  mysql::system_info::Process_memory_residency
 Resident memory of the current process, in bytes. More...
 
struct  mysql::system_info::Process_memory_details
 Optional memory details of the current process, in bytes. More...
 
struct  mysql::system_info::Process_page_faults
 Cumulative major page faults of the current process. More...
 
struct  mysql::system_info::Process_memory_snapshot
 Process memory capabilities collected at one collection point. More...
 
struct  mysql::system_info::Thread_identity
 Identity, name and state of one process thread. More...
 
struct  mysql::system_info::Thread_inventory
 Process threads visible at one collection point. More...
 
struct  mysql::system_info::Process_runtime_info
 Process-wide runtime values for the current process. More...
 
struct  mysql::system_info::Thread_cpu_times
 Portable cumulative CPU times for one process thread. More...
 
struct  mysql::system_info::Thread_cpu_snapshot
 Portable thread CPU times collected at one collection point. More...
 
struct  mysql::system_info::Thread_extended_cpu_times
 Optional cumulative CPU times for one process thread. More...
 
struct  mysql::system_info::Thread_extended_cpu_snapshot
 Extended thread CPU times collected at one collection point. More...
 
struct  mysql::system_info::Thread_scheduler_info
 Optional scheduler values for one process thread. More...
 
struct  mysql::system_info::Thread_scheduler_snapshot
 Thread scheduler values collected at one collection point. More...
 
struct  mysql::system_info::Thread_io_counters
 Cumulative I/O byte counters for one process thread. More...
 
struct  mysql::system_info::Thread_io_snapshot
 Thread I/O counters collected at one collection point. More...
 
struct  mysql::system_info::Process_threads_snapshot
 Process thread capabilities collected at one collection point. More...
 

Namespaces

namespace  mysql
 
namespace  mysql::system_info
 

Enumerations

enum class  mysql::system_info::Result_state { mysql::system_info::available , mysql::system_info::unavailable , mysql::system_info::failed }
 State of one system information capability. More...
 
enum class  mysql::system_info::Storage_device_kind {
  mysql::system_info::disk , mysql::system_info::partition , mysql::system_info::volume , mysql::system_info::virtual_device ,
  mysql::system_info::unknown
}
 Kind of storage device represented by an inventory entry. More...
 
enum class  mysql::system_info::Thread_state {
  mysql::system_info::running , mysql::system_info::sleeping , mysql::system_info::waiting , mysql::system_info::stopped ,
  mysql::system_info::zombie , mysql::system_info::unknown
}
 Portable execution state of a process thread. More...
 

Functions

Filesystem_snapshot mysql::system_info::query_filesystem (std::string_view path)
 Collect identity and usage for the filesystem containing a path. More...
 
Storage_snapshot mysql::system_info::query_storage_devices ()
 
Host_memory_snapshot mysql::system_info::query_host_memory ()
 
Host_cpu_snapshot mysql::system_info::query_host_cpu ()
 
Process_memory_snapshot mysql::system_info::query_process_memory ()
 
Process_threads_snapshot mysql::system_info::query_process_threads ()