On Tue, May 04, 2010 at 04:47:16PM -0700, vhiz wrote:
Hi All,
I used the following script from the dtrace manual to measure how long a
particular process runs on the cpu. Modified it to look at the exact
timestamps:
[i]
sched:::on-cpu
{
self-ts = timestamp;
printf(on=%d\n, self-ts)
}
Hi All,
I used the following script from the dtrace manual to measure how long a
particular process runs on the cpu. Modified it to look at the exact timestamps:
[i]
sched:::on-cpu
{
self-ts = timestamp;
printf(on=%d\n, self-ts)
}
sched:::off-cpu
/self-ts/
{
printf(off=%d\n, timestamp)
self-ts