HostStatisticsManager
A host statistics manager.
struct HostStatisticsManager
Creating a Host Statistics Manager
init(host: Mach.Host
) Creates a host statistics manager.
let port: Mach.Host
The host port.
General Operations
func get<DataType>(HostStatisticsFlavor, as: DataType.Type
) throws -> DataType Gets the host’s statistics.
Getting Specific Statistics
var load: host_load_info
The load statistics of the host.
var vm: vm_statistics
The virtual memory statistics of the host.
var cpuLoad: host_cpu_load_info
The CPU load statistics of the host.
var vm64: vm_statistics64
The 64-bit virtual memory statistics of the host.
var extMod: vm_extmod_statistics
The 64-bit external modification statistics of the host.
var expiredTasks: task_power_info_v2
The power usages statistics for expired tasks on the host.