이 페이지에서

QML 애플리케이션 프로파일링하기

QML Profiler

을 사용하면 QML Profiler 를 사용하면 QML 코드의 성능 문제를 분석할 수 있습니다. 프로파일러는 Qt CreatorQt Design Studio 에 모두 포함되어 있습니다. 프로파일러를 사용하는 가장 좋은 방법은 빌드 및 실행 설정에 {QC} 또는 {QDS}의 기본값을 활용하는 것입니다.

수동으로 빌드하거나 실행하는 경우 QML Profiler 을 사용하려면 QML 디버깅 인프라를 활성화해야 합니다.

명령줄 qmlprofiler 도구 사용

Qt는 파일에서 프로파일링 데이터를 캡처할 수 있는 qmlprofiler 명령줄 도구를 제공합니다. 이 파일은 나중에 Qt Creator 또는 Qt Design Studio 에 로드하여 분석할 수 있습니다. 이 도구는 디버깅 프로토콜을 사용하여 애플리케이션에 연결됩니다.

이 도구를 실행하려면 QML 디버깅 인프라를 활성화한 상태에서 애플리케이션을 시작한 후 다음 명령을 입력합니다:

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

디버그 인프라를 필요한 서비스로만 제한하려면 -qmljsdebuggerservices 인수를 사용하는 것이 좋습니다. 이러한 서비스는 일반적으로 CanvasFrameRate, EngineControl, DebugMessages 입니다. 다른 서비스를 활성화하면 프로파일링 결과에 영향을 미칠 수 있습니다.

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