在Mac OS X中通过CLI命令行获取CPU信息
sysctl -n machdep.cpu.brand_stringIntel(R) Core(TM) i7-8750H CPU @ 2.20GHzsystem_profiler | grep Processor Apple: AUDynamicsProcessor:
IOSlaveProcessor:
Bundle ID: com.apple.driver.IOSlaveProcessor
Location: /System/Library/Extensions/IOSlaveProcessor.kext
Processor Name: Intel Core i7
Processor Speed: 2.2 GHz
Number of Processors: 1参考
Last updated