• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: dtrace: catching thread yield
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >dtrace: catching thread yield (From: Joel Reymont <email@hidden>)

  • Prev by Date: Re: dtrace: catching thread yield
  • Next by Date: Re: dtrace: catching thread yield
  • Previous by thread: Re: dtrace: catching thread yield
  • Next by thread: Re: dtrace: catching thread yield
  • Index(es):
    • Date
    • Thread