I need to collect to use the CPU often, and the top command costs a lot of time (top -F -R-1). I am also trying to use "sysctl" and "sysctlbyname", but below functions cannot get CPU usage. So, if there is any API or command line
No one has answered this question yet.
See related questions: