MySQL 26.10.0
Source Code Documentation
mysql::system_info Namespace Reference

Namespaces

namespace  anonymous_namespace{system_info.cc}
 
namespace  internal
 

Classes

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

Enumerations

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

Functions

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

Enumeration Type Documentation

◆ Result_state

State of one system information capability.

Enumerator
available 
unavailable 
failed 

◆ Storage_device_kind

Kind of storage device represented by an inventory entry.

Enumerator
disk 
partition 
volume 
virtual_device 
unknown 

◆ Thread_state

Portable execution state of a process thread.

Enumerator
running 
sleeping 
waiting 
stopped 
zombie 
unknown 

Function Documentation

◆ query_filesystem()

Filesystem_snapshot mysql::system_info::query_filesystem ( std::string_view  path)

Collect identity and usage for the filesystem containing a path.

Parameters
pathPath whose filesystem is queried
Returns
Filesystem capability results

◆ query_host_cpu()

Host_cpu_snapshot mysql::system_info::query_host_cpu ( )
Returns
Host CPU capabilities collected at one collection point.

◆ query_host_memory()

Host_memory_snapshot mysql::system_info::query_host_memory ( )
Returns
Host memory capabilities collected at one collection point.

◆ query_process_memory()

Process_memory_snapshot mysql::system_info::query_process_memory ( )
Returns
Current process memory capabilities.

◆ query_process_threads()

Process_threads_snapshot mysql::system_info::query_process_threads ( )
Returns
Current process thread capabilities.

◆ query_storage_devices()

Storage_snapshot mysql::system_info::query_storage_devices ( )
Returns
Storage capabilities collected at one collection point.