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.
Valgrind cachegrind を実行すると、1 つ以上のスレッドで結果が異なりますか? それとも、Valgrind はプログラムを順次処理し、1 つのスレッドの作業のみを報告しますか?
Valgrindは、不確定な方法ですべてのスレッドをシリアル化し、順次コード フローを分析します。すべてのコードに関する結果が得られますが、結果は同じコードの実際の運用実行を表すものではない場合があります。(たとえば、同時実行に関連する多くのバグは、Valgrind で実行されるプログラムには現れません。)