search for: timesystem

Displaying 1 result from an estimated 1 matches for "timesystem".

2007 Feb 21
6
CPU stats problem
...ull 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 -> timeidle = curthread -> t_cpu -> cpu_acct[2];...