Regarding the questions Eric raised, I think we can answer "What/who is it 
waiting on" by adding a new view like:

Process XYZ:                                                        Total: 80 
msec
Type:Name                           Count          Average                Max
Mutex:ffffff02532845f0            10             5 msec           20 msec
CV:ffffff02532847e8                  3            10 msec           50 msec

The data can be gathered from sched:::wakeup, which should have the info about 
the sleeping thread as well as which synchronization object is it sleeping on. 
The duration of a sleep operation is calculated by timestamps between 
sched:::wakeup - sched:::off-cpu (sched:::sleep would be more obvious, but 
off-cpu is already traced in latencytop).

Any comments? Thanks.
-- 
This message posted from opensolaris.org
_______________________________________________
perf-discuss mailing list
perf-discuss@opensolaris.org

Reply via email to