Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get the cpu usage per thread on Mac OSX [closed]

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.

like image 563
Pokot0 Avatar asked Sep 21 '09 16:09

Pokot0


1 Answers

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

like image 175
Virgil Avatar answered Oct 13 '22 10:10

Virgil