在/proc/[pid]/stat
里有该进程的详细信息。其内容的解释可以在man 5 proc
里查看(搜/stat
)
相关部分如下:
(14) utime%lu |
一个进程里的所有线程的stat文件的内容都是一样的。
原文:https://unix.stackexchange.com/questions/132035/obtain-user-and-kernel-time-of-a-running-process
在/proc/[pid]/stat
里有该进程的详细信息。其内容的解释可以在man 5 proc
里查看(搜/stat
)
相关部分如下:
(14) utime%lu |
一个进程里的所有线程的stat文件的内容都是一样的。
原文:https://unix.stackexchange.com/questions/132035/obtain-user-and-kernel-time-of-a-running-process
Except as otherwise noted, this blog is licensed under CC BY-SA 4.0 License.
©2021-
searchstar
|
pv
|
uv
Theme Tree
by Wu Jun
Powered by Hexo