Displaying 1 result from an estimated 1 matches for "myexecnam".
Did you mean:
myexecname
2008 Feb 12
1
measuring sleep time in synchronization objects
...sing DTrace to figure out the
total time for which each thread in my application sleeps, blocked on a
semaphore, i.e., as a result of sem_wait() call. In order to measure this, I
wrote a script with sched:::sleep and sched:wakeup probes enabled, as shown
below:
sched:::sleep
/execname == "myexecname"/
{
ustack();
bedtime[curlwpsinfo->pr_addr,curlwpsinfo->pr_stype] = walltimestamp;
}
sched:::wakeup
/bedtime[args[0]->pr_addr,args[0]->pr_stype]/
{
@sleeptime[execname,args[0]->pr_lwpid,args[0]->pr_addr,args[0]->pr_stype] =
sum(walltimestamp - bedtime...