【发布时间】:2021-04-08 14:06:37
【问题描述】:
我尝试过使用 /proc/loadavg,但我不想要平均值。有什么方法可以进行数学运算,例如实时使用我所有的内核,然后将其除以我的 cpu 的全部容量?
这里很好地解释了我需要什么https://developer.qualcomm.com/forum/qdn-forums/increase-app-performance/trepn-profiler/28696
【问题讨论】:
-
这能回答你的问题吗? How to get the CPU Usage in C?
标签: c linux linux-kernel