unSpawn |
11-21-2011 12:20 PM |
Quote:
Originally Posted by eidbadrlt
(Post 4529739)
is there a command to get the user and system time per each process?
|
'ps' should, with the "--noheader -C [Process_Name] -o cstime,cutime" args, but those are deprecated. 'procstat', this or this version, should show utime and stime. Of course you could also just 'awk '{print "proc: "$2" state: "$3" user: "$14" kernel: "$15}' /proc/ {Process_Id}/stat;'.
Quote:
Originally Posted by eidbadrlt
(Post 4529756)
is it even possible to get those values per each process?
|
The fact that nobody responds immediately should not be a reason to bump your thread by posting a reply yourself: edit your original post instead. The other reason for not posting a first reply yourself is the thread gets dropped out of the 0-reply pool.
|