开发者

Determining execution time of a thread and IO accesses by different threads

开发者 https://www.devze.com 2022-12-10 05:59 出处:网络
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.

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消