このページでは

QMLアプリケーションのプロファイリング

QML Profiler

プロファイリングツール QML Profilerを使うことで、QMLコードを解析し、パフォーマンス上の問題を見つけることができます。プロファイラはQt CreatorQt Design Studio の両方に含まれています。QC}や{QDS}のデフォルトのビルド設定や実行設定を利用するのが最も良い方法です。

手動でビルドまたは実行する場合、QML Profiler を使用するために、QML デバッグインフラストラクチャを有効にする必要があります。

コマンドライン qmlprofiler ツールの使用

Qt はqmlprofilerコマンドラインツールを提供し、プロファイリングデータをファイルに取り込みます。このファイルは後でQt CreatorQt Design Studio に読み込んで解析することができます。デバッグ・プロトコルを使用してアプリケーションに接続します。

このツールを実行するには、QMLデバッグインフラストラクチャを有効にしてアプリケー ションを起動した後、以下のコマンドを入力します:

qmlprofiler -p <port> -attach <ip address>

デバッグインフラを必要なサービスだけに限定するために、-qmljsdebuggerservices という引数を使うことが推奨されます。通常、CanvasFrameRateEngineControlDebugMessages が該当します。他のサービスが有効になっていると、プロファイリング結果に影響を与える可能性があります。

© 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.