プロジェクトのValgrind設定を指定する
キットで選択した「Run device」上でアプリケーションを実行するための設定を指定するには、Projects >Run Settings に移動します。
Valgrind のツールスイートを使用すると、メモリリークを検出したり、関数の実行プロファイルを作成したりすることができます。
現在のプロジェクトの Valgrind 設定を指定するには:
- 「Valgrind Settings 」セクションで、「Custom 」を選択します。
- プロジェクトの Valgrind 設定を指定します。

- [Valgrind executable] で、Valgrind 実行ファイルへのパスを指定します。
- 「Valgrind arguments 」で、Valgrind に対する追加の引数を指定します。
- 「Detect self-modifying code 」で、自己変更コードを検出するかどうか、および検出する場所(スタック上のみ、すべての場所、またはファイルバックエンドのマッピングを除くすべての場所)を選択します。
Restore Global を選択すると、グローバル設定に戻ります。
Valgrind のグローバル設定を指定するには、[Preferences ] > [Analyzer] を選択します。
「Memcheck によるメモリリークの検出」、「関数実行のプロファイリング」、「外部アプリケーションでの Valgrind ツールの実行」、「プロジェクトのビルドと実行」、「Valgrind Callgrind」、および「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.