Top |
void glibtop_get_proc_time (glibtop_proc_time *buf
,pid_t pid
);
Get process time information.
struct glibtop_proc_time { guint64 start_time; guint64 rtime; guint64 utime; guint64 stime; guint64 cutime; guint64 cstime; guint64 timeout; guint64 it_real_value; guint64 frequency; guint64 xcpu_utime [GLIBTOP_NCPU]; guint64 xcpu_stime [GLIBTOP_NCPU]; };
Process time data filled by glibtop_get_proc_time()
.
Under Linux the start_time
value may be wrong due to the information
available from the kernel.
The Linux kernel defines INITIAL_JIFFIES which implies a time
shift. Because INITIAL_JIFFIES is not user-space defined,
we cannot use it to compute an accurate start_time
. On Linux 2.6,
start_time
is
always 3s different from the real start time of the given process. You may also get shift results if your system clock is not synchronised with your hardware clock. See man hwclock.
Start time of process in seconds since the epoch. |
||
Real time accumulated by process (should be |
||
User-mode CPU time accumulated by process. |
||
Kernel-mode CPU time accumulated by process. |
||
Cumulative utime of process and reaped children. |
||
Cumulative stime of process and reaped children. |
||
The time (in jiffies) of the process’s next timeout. |
||
The time (in jiffies) before the next SIGALRM is sent to the process due to an interval timer. |
||
Tick frequency. |
||
SMP user-mode CPU time accumulated by process. |
||
SMP kernel-mode CPU time accumulated by process |