How to retrieve process kernel time and user time?
How to retrieve process kernel time and user time?
- Subject: How to retrieve process kernel time and user time?
- From: "Manish Chaturvedi" <email@hidden>
- Date: Wed, 16 Apr 2008 11:39:24 +0530
Hi All,
I am trying to get the Kernel time and User time of the
process using following variables of the structure extern_proc
u_quad_t
p_uticks;
/* Statclock hits in user mode. */
u_quad_t
p_sticks;
/* Statclock hits in system mode. */
but for every process I am getting a “Big ZERO”
corresponding to these values, does that mean no process have spend even a
millisecond in Kernel mode and User mode ?
Is it the right way to get the Kernel time/CPU time and User
time for a process (Except using ps )?
What is the jiffy value in seconds on Mac because if I get
values I will have to convert it in seconds.
Thanks in advance!
Regards,
Manish
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden