您可以使用sysctl hw.cpufrequency
. 它的输出单位是赫兹,例如:
hw.cpufrequency: 2660000000
Run Code Online (Sandbox Code Playgroud)
hw.cpufrequency_min
并分别hw.cpufrequency_max
包含最小值和最大值。
小智 6
sudo powermetrics
显示有关 CPU 频率的许多详细信息(具有系统平均值和每个代码)。这是一个内置的系统 CLI 实用程序:
System Average frequency as fraction of nominal: 119.17% (3098.45 Mhz)
[..]
CPU 0
[..]
CPU Average frequency as fraction of nominal: 119.18% (3098.67 Mhz)
CPU 1
[..]
CPU Average frequency as fraction of nominal: 119.07% (3095.79 Mhz)
[..]
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
4710 次 |
最近记录: |