How to count the cpu usage of a process
Sometimes we want to collect the cpu usage of the process, and usually use a script to make simple statistics.
Under Linux, the cpu time slice of the process can be obtained through the stat provided by procfs.
Or simply use some commands to get directly.
|
本文是原创文章,采用CC BY-NC-SA 4.0协议,完整转载请注明来自小竹's blog
评论 ()