Re: [dtrace-discuss] sched provider

2010-05-06 Thread Jonathan Adams
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) }

[dtrace-discuss] sched provider

2010-05-04 Thread vhiz
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