Instance Methodnmggithub.kass 3.2.4MachCore
get(_:as:)
Gets the processor’s info.
func get<DataType>(_ flavor: Mach.ProcessorInfoFlavor, as type: DataType.Type = DataType.self) throws -> DataType where DataType : BitwiseCopyable
Gets the processor’s info.
func get<DataType>(_ flavor: Mach.ProcessorInfoFlavor, as type: DataType.Type = DataType.self) throws -> DataType where DataType : BitwiseCopyable
s8MachCore0A0V20ProcessorInfoManagerV3get_2asxAC0cD6FlavorV_xmtKs15BitwiseCopyableRzlF
What are these?5DHEU
import MachCore
The core module for interacting with the Mach kernel.
struct ProcessorInfoManager
A processor info manager.
struct Mach
The Mach kernel.
struct ProcessorInfoFlavor
A flavor of processor info.
protocol BitwiseCopyable
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.
let port: Mach.Processor
The processor port.