I am looking to get time/jiffie stats on the state of a daemon process. The states I'm referring to are mentioned in the Linux Kernel Proc Filesystem document. Running, Sleeping, uninterruptible sleep, Zombie, Traced/stopped.
Table 1-4 mentions jiffie time counters for user, kernel, user w/childs, and kernel w/childs, but no mention of jiffies in state.
Are there standard counters that track time spent in these states?
/proc/[pid]/stat there are user (
utime), kernel (
stime), and guest(
gtime) counters measured in jiffies.
Do process counters exist for time spent in states: [
D]eep sleeping in an uninterruptible wait, [
T]raced or stopped measured in jiffies?