Determining execution time of a thread and IO accesses by different threads
I want to determine execution time of开发者_开发知识库 a thread in a multi-threaded program, and I also want to know about IO accesses made by each thread.
Is there any command/tool which can do this for C programs?
For determining the execution you could try valgrind (specifically the callgrind module). There is also a neat visualization tool for the output called KCacheGrind
For monitoring IO access you could use strace.
精彩评论