Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
pthreads を使用するマルチスレッド プログラムのプロファイリングに gprof を使用できますか? つまり、その出力には、すべてのスレッドで使用された時間が含まれますか?
はい、こちらで説明されている回避策を使用することで可能です。
pstackを検討しましたか?複数のスレッドで問題なく動作し、スタックショット法によるパフォーマンスの問題を見つけるのに適しています。 gprofはそれが何であるかですが、もっとうまくやれる可能性があります。