Valgrind Callgrind
Valgrindの設定は、すべてのプロジェクトに共通してグローバルに設定するか、各プロジェクトの実行設定で個別に設定します。
Valgrind のグローバル設定を行うには、[Preferences ] > [Analyzer ] > [Valgrind] を選択します。Callgrind の設定は、[Callgrind Profiling Options] で行います。

「KCachegrind executable 」フィールドに、起動する KCachegrind 実行ファイルへのパスを入力します。
「Extra Callgrind arguments 」で、実行ファイルを起動するための追加引数を指定します。
「Result view: Minimum event cost 」および「Visualization: Minimum event cost 」フィールドで、プロファイラが提示および視覚化する結果の量を制限し、プロファイラのパフォーマンスを向上させます。
ツールチップにイベントに関する追加情報を表示するには、[Show additional information for events in tooltips] を選択します。
システムコールの実行時間に関する情報を収集するには、[Collect system call time] を選択します。イベントタイプ「Ge 」のグローバルバスイベントの実行回数を収集するには、[Collect global bus events] を選択します。
完全なキャッシュシミュレーションの有効化
デフォルトでは、命令の読み取りアクセス (Ir) のみがカウントされます。キャッシュを完全にシミュレートするには、Enable cache simulation を選択してください。これにより、以下の追加のイベントカウンタが有効になります:
- 命令読み取り時のキャッシュミス (I1mr/I2mr)
- データ読み取りアクセス (Dr) および関連するキャッシュミス (D1mr/D2mr)
- データ書き込みアクセス(Dw)および関連するキャッシュミス(D1mw/D2mw)
分岐予測シミュレーションの有効化
以下の追加イベントカウンタを有効にするには、[Enable branch prediction simulation] を選択します:
- 実行された条件付き分岐の数および関連する予測ミスの数 (Bc/Bcm)
- 実行された間接ジャンプおよび関連するジャンプアドレス予測器のミス (Bi/Bim)
「Memcheck によるメモリリークの検出」、「ビューの切り離し」、「関数実行のプロファイリング」、「外部アプリケーションでの Valgrind ツールの実行」、「プロジェクトに対する Valgrind 設定の指定」、および「Valgrind Memcheck」も参照してください 。
Copyright © The Qt Company Ltd. and other contributors. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.