我想知道如何计算进程的总CPU使用率.
如果我这样做,我认为相关领域是(取自lindevdoc.org):cat /proc/pid/stat
cat /proc/pid/stat
花费14到17之和的总时间是多少?
linux
我真的很困惑.我刚刚注意到从Android 8开始所有系统调用如/ proc/stat都将被禁用.好的,但是在Android 8中获得CPU使用率的工作原理是什么?根本没有系统调用.是否有一些我不熟悉的API?
我真的希望有一个我现在看不到的解决方案.
android system-calls android-permissions android-8.0-oreo
android ×1
android-8.0-oreo ×1
android-permissions ×1
linux ×1
system-calls ×1