在mac os x的终端中以命令行的形式查看本机cpu信息:
sysctl -n machdep.cpu.brand_string
E.G.
lis-mbp:Home
jenkins$ sysctl -n machdep.cpu.brand_string
Intel(R)
Core(TM) i7-4750HQ CPU @ 2.00GHz
如果只需要处理器数量等,则可以命令:
system_profiler | grep processor
E.G.
lis-mbp:Home
jenkins$ system_profiler | grep Processor
Apple: AUDynamicsProcessor:
Apple: AUVoiceProcessor:
Processor Name: Intel Core i7
Processor Speed: 2 GHz
Number of Processors: 1
<key>BootCampProcessorPstates</key>
| "BootCampProcessorPstates" =
<0d00>
时间: 2024-12-29 07:52:35