Displaying 1 result from an estimated 1 matches for "timeidle".
Did you mean:
timefile
2007 Feb 21
6
CPU stats problem
...m trying to poll the cpu_t.cpu_acct[] array to pull idle, system and user values.
So, I made this little script:
------------------------------------------------------------------------------------------------------
#!/usr/sbin/dtrace -s
#pragma D option quiet
this uint64_t start;
this hrtime_t timeidle;
this hrtime_t timeuser;
this hrtime_t timesystem;
this hrtime_t timewait;
this int in;
dtrace:::BEGIN
{
this -> start = timestamp;
this -> timeidle = 0;
this -> timeuser = 0;
this -> timesystem = 0;
this -> timewait = 0;
this -> in = 0;
}
sched:::on-cpu
{
this -> time...