views:

61

answers:

1

Hello

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?

A: 

For determining the execution you could try valgrind (specifically the callgrind module). There's also a neat visualization tool for the output called KCacheGrind

For monitoring IO access you could use strace.

Jeff Foster