how to get thread CPU time
site_archiver@lists.apple.com Delivered-To: darwin-kernel@lists.apple.com Hello, is there any way to get time which particular thread is being executed on CPU. In other words how many milliseconds (or nonoseconds) of CPU time was consumed by thread since it has been started. IAIK, in Linux there is a clock_gettime(CLOCK_THREAD_CPUTIME_ID) system call (and Windows has similar API) but I cannot find any analog for Darwin. I'm writing CPU profiler for Mac OS X and thread CPU times is very important for me. Please advise. Best regards and thank you in advance, Vladimir Kondratyev YourKit, LLC http://www.yourkit.com "Don't get lost in data, get information!" _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-kernel mailing list (Darwin-kernel@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-kernel/site_archiver%40lists.a... This email sent to site_archiver@lists.apple.com
participants (1)
-
infoï¼ yourkit.com