이 페이지에서

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

QML Profiler

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

Qt Extension for Visual Studio Code 또한 다음을 포함합니다. QML Profiler.

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

명령줄 qmlprofiler 도구 사용

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

이 도구를 실행하려면, QML 디버깅 인프라가 활성화된 상태로 애플리케이션을 시작한 후 다음 명령을 입력하십시오:

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

디버깅 인프라를 필요한 서비스로만 제한하려면 -qmljsdebugger 에 services 인수를 사용하는 것이 좋습니다. 일반적으로 필요한 서비스는 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.