Instance Propertynmggithub.kass 3.2.4MachCore
port
The processor port.
let port: Mach.Processor
The processor port.
let port: Mach.Processor
import MachCore
The core module for interacting with the Mach kernel.
struct ProcessorInfoManager
A processor info manager.
struct Mach
The Mach kernel.
class Processor
A processor in a host.
init(processor: Mach.Processor)
Creates a processor info manager.
var basic: Mach.ProcessorBasicInfo { get throws }
The processor’s basic information.
var cpuLoad: processor_cpu_load_info { get throws }
The processor’s CPU load information.
func get<DataType>(_ flavor: Mach.ProcessorInfoFlavor, as type: DataType.Type = DataType.self) throws -> DataType where DataType : BitwiseCopyable
Gets the processor’s info.