I am looking for an OS level API to account for cycles consumed by a specific thread in OSX.
This is similar to this question (and answer) but in OSX.
You should be able to get this info from the thread_basic_info structure, returned by a call to thread_info.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With