Re: dtrace: catching thread yield
Re: dtrace: catching thread yield
- Subject: Re: dtrace: catching thread yield
- From: Wade Tregaskis <email@hidden>
- Date: Tue, 25 Aug 2009 18:13:17 -0700
I would like to get a kernel stack trace whenever a thread yields.
This may explain why the tread is yielding.
This is done with the sched provider on Solaris but is there a way
to do it on the Mac?
System Trace, in Shark. I'm not sure exactly what you mean by yield,
but it'll show you both context switches and system calls. You won't
get the callstack at the time of the context switch, but if you're
concerned with "explicit" yields (e.g. system calls that block), then
it's exactly what you want.
Wade
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden