LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   user and system time per process (https://www.linuxquestions.org/questions/linux-newbie-8/user-and-system-time-per-process-914707/)

eidbadrlt 11-21-2011 09:12 AM

user and system time per process
 
is there a command to get the user and system time per each process?

eidbadrlt 11-21-2011 09:51 AM

is it even possible to get those values per each process?

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.


All times are GMT -5. The time now is 02:21 AM.