qmlprofiler
qmlprofiler は、アプリケーションからQMLトレースデータを取得します。収集されたデータは、Qt Creator で可視化できます。
qmlprofiler でアプリケーションのプロファイリングを行うには、QMLデバッグインフラストラクチャを有効にしてアプリケーションをビルドしてください。
詳細については QML Profiler を参照してください。
| 使用方法 |
|---|
| qmlprofiler [オプション] 実行ファイル [パラメータ...] |
オプション
| オプション | 説明 |
|---|---|
-a, --attach <hostname> | ローカルで起動する代わりに、<hostname>上で既に実行中のアプリケーションにアタッチします。 |
-p, --port <port> | TCP ポート <port> に接続します。デフォルトは 3768 です。 |
-o, --output <file> | トレースデータを <file> に保存します。デフォルトでは、データは標準出力に送信されます。 |
--record <on|off> | 'off' に設定した場合、QML エンジンの起動時にデータの記録を直ちに開始せず、対話的に、または JavaScript のconsole.profile() 関数を使用して記録を開始します。デフォルトでは、記録は直ちに開始されます。 |
--include <feature,...> | 記録する機能のカンマ区切りリスト。デフォルトでは、QMLエンジンがサポートするすべての機能が記録されます。--include が指定された場合、指定された機能のみが記録されます。qmlprofilerが認識する機能は以下の通りです:javascript 、memory 、pixmapcache 、scenegraph 、animations 、painting 、compiling 、creating 、binding 、handlingsignal 、inputevents 、debugmessages 、quick3d 。 |
--exclude <feature,...> | 記録時に除外する機能のカンマ区切りのリスト。デフォルトでは、QMLエンジンがサポートするすべての機能が記録されます。qmlprofilerが認識する機能については、--include を参照してください。 |
--interactive | コマンドラインから記録を手動で制御します。この場合、アプリケーションが終了してもプロファイラは終了しません。以下のコマンドが利用可能です:
|
--verbose | デバッグ出力を表示します。 |
-h, --help | コマンドラインオプションに関するヘルプを表示します。 |
--help-all | ヘルプを表示します(一般的な Qt オプションも含みます)。 |
-v, --version | バージョン情報を表示します。 |
引数
| 引数 | 説明 |
|---|---|
| 実行ファイル | QML ドキュメントを読み込む実行ファイルのパス。 |
| パラメータ | 実行ファイルの引数 |
© 2026 The Qt Company Ltd. 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.