HostInfoManager
A host info manager.
struct HostInfoManager
Creating a Host Info Manager
init(host: Mach.Host
) Creates a host info manager.
let port: Mach.Host
The host port.
General Operations
func get<DataType>(HostInfoFlavor, as: DataType.Type
) throws -> DataType Gets the host’s information.
Getting Specific Info
var basic: host_basic_info
The basic info of the host.
var scheduling: host_sched_info
The scheduling info of the host.
var resourceSizes: kernel_resource_sizes
The resource sizes for the host.
var priority: host_priority_info
The priority info of the host.
var supportsSemaphoreTraps: ()
Whether the host supports semaphore traps.
var supportsMachMsgTraps: ()
Whether the host supports Mach message traps.
var vmPurgeable: vm_purgeable_info_t
Information about purgeable virtual memory on the host.
var canHasDebugger: host_can_has_debugger_info
Whether the host can has debugger.
var preferredUserSpaceArchitecture: host_preferred_user_arch
The preferred user space architecture of the host.
Getting Debug Info
struct HostDebugInfoInternal
Debug information about the host.
var debugInfo: Mach.HostDebugInfoInternal
The debug info of the host.