Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
644 views
in Technique[技术] by (71.8m points)

linux - 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?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

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.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...