Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
profiling.qdoc
Go to the documentation of this file.
1
// Copyright (C) 2026 The Qt Company Ltd.
2
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GFDL-1.3-no-invariants-only
3
4
/*!
5
\page qtquick-profiling.html
6
\ingroup qtquick-tools
7
\title Profiling QML Applications
8
\brief Provides information on how to use QML's profiling tools.
9
10
\section1 QML Profiler
11
12
With the \l{\QC: Profiling QML Applications}{QML Profiler} you can analyze
13
your QML code for performance issues. The profiler is part of
14
both \QC and \QDS. The best way to use it is to utilize \QC or \QDS
15
defaults for build and run settings.
16
17
\QVSC also includes a \l{\QVSC: Profile QML code}{QML Profiler}.
18
19
If you are building or running manually, in order to use the QML Profiler,
20
you need to enable the \l{QML debugging infrastructure}.
21
22
\section1 Using the command line qmlprofiler tool
23
24
Qt provides the \l{qmlprofiler} command line tool to capture profiling data in a
25
file. The file can later be loaded into \QC or \QDS for analysis. It
26
\l{Connecting to applications}{connects} to the application using the
27
debugging protocol.
28
29
To run this tool, after starting the application with the
30
\l{QML debugging infrastructure} enabled, enter the following command:
31
32
\c {qmlprofiler -p <port> -attach <ip address>}
33
34
It is advisable to use the \c{services} argument to \c{-qmljsdebugger} in order to
35
limit the debug infrastructure to only the services required. These are typically
36
\c{CanvasFrameRate}, \c{EngineControl}, and \c{DebugMessages}. Having other services
37
enabled may influence the profiling results.
38
39
*/
qtdeclarative
src
qml
doc
src
profiling.qdoc
Generated on
for Qt by
1.16.1