how to get thread CPU time
how to get thread CPU time
- Subject: how to get thread CPU time
- From: email@hidden
- Date: Fri, 17 Mar 2006 18:53:41 +0300
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 (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden