Instead of
hotspot$target::sleep:method-entry /self->trace/ {
self->time2 = vtimestamp;
}
hotspot$target::sleep:method-return /self->trace/ {
self->idle_time = vtimestamp - self->time2;
}
you could use the sched provider probes in Solaris.
sched:::off-cpu
/self->trace/ {
self->time2 = vtimestamp;
}
sched:::on-cpu
/self->trace/ {
self->idle_time = vtimestamp - self->time2;
}
Pramod
On 05/18/09 11:03, Ajit Bansode wrote:
Krishnan,
I tried your way.
But it's not working.
I think "dvm$target:sleep::method-entry" probe is not there.
Please point me if I am doing anything wrong.
Thanks,
Ajit
_______________________________________________
dtrace-discuss mailing list
[email protected]