6

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.

Community
  • 1
  • 1
Pokot0
  • 562
  • 1
  • 7
  • 12

1 Answers1

3

You should be able to get this info from the thread_basic_info structure, returned by a call to thread_info.

Virgil
  • 3,022
  • 2
  • 19
  • 36