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
qtqml-tooling-qmlprofiler.qdoc
Go to the documentation of this file.
1
// Copyright (C) 2023 The Qt Company Ltd.
2
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GFDL-1.3-no-invariants-only
3
4
/*!
5
\page qtqml-tooling-qmlprofiler.html
6
\title qmlprofiler
7
\brief A tool that retrieves QML tracing data from your application.
8
\ingroup qtqml-tooling
9
\ingroup qtqml-tooling-devtools
10
11
12
The \c qmlprofiler retrieves QML tracing data from an application. The collected
13
data can then be visualized in \QC.
14
15
To enable \c qmlprofiler to profile an application, make sure to build the
16
application with the \l{QML debugging infrastructure} enabled.
17
18
See the \l{\QC: Profiling QML Applications}{QML Profiler} to learn
19
more.
20
21
\table
22
\header
23
\li Usage
24
\row
25
\li qmlprofiler [\l{options}] executable [parameters...]
26
\endtable
27
28
\section2 options
29
30
\table
31
\header
32
\li Option
33
\li Description
34
\row
35
\li \c{-a, --attach <hostname>}
36
\li Attach to an application already running on <hostname>, instead of
37
starting it locally.
38
\row
39
\li \c{-p, --port <port>}
40
\li Connect to the TCP port <port>. The default is 3768.
41
\row
42
\li \c{-o, --output <file>}
43
\li Save tracing data in <file>. By default the data is sent to the standard output.
44
\row
45
\li \c{--record <on|off>}
46
\li If set to 'off', don't immediately start recording data when the QML
47
engine starts, but instead either start the recording interactively
48
or with the JavaScript \c{console.profile()} function. By default the
49
recording starts immediately.
50
\row
51
\li \c{--include <feature,...>}
52
\li Comma-separated list of features to record. By default all features
53
supported by the QML engine are recorded. If \c{--include} is specified,
54
only the given features will be recorded. The following features are
55
understood by qmlprofiler: \c{javascript}, \c{memory}, \c{pixmapcache}, \c{scenegraph},
56
\c{animations}, \c{painting}, \c{compiling}, \c{creating}, \c{binding}, \c{handlingsignal},
57
\c{inputevents}, \c{debugmessages}, \c{quick3d}.
58
\row
59
\li \c{--exclude <feature,...>}
60
\li Comma-separated list of features to exclude when recording. By default,
61
all features supported by the QML engine are recorded. See \c{--include} for
62
the features understood by qmlprofiler.
63
\row
64
\li \c{--interactive}
65
\li Manually control the recording from the command line. The profiler will
66
not terminate itself when the application does so in this case.
67
The following commands are available:
68
\list
69
\li \c{'r', 'record'}
70
71
Switch recording on or off.
72
\li \c{'o [file]', 'output [file]'}
73
74
Output profiling data to \c{<file>}. If no \c{<file>} parameter is given,
75
output to whatever was given with \c{--output}, or standard output.
76
\li \c{'c', 'clear'}
77
78
Clear profiling data recorded so far from memory.
79
\li \c{'f [file]', 'flush [file]'}
80
81
Stop recording if it is running, then output the data, and finally
82
clear it from memory.
83
\li \c{'q', 'quit'}
84
85
Terminate the target process if started from qmlprofiler, and
86
qmlprofiler itself.
87
\endlist
88
\row
89
\li \c{--verbose}
90
\li Print debugging output.
91
\row
92
\li \c{-h, --help}
93
\li Displays help on commandline options.
94
\row
95
\li \c{--help-all}
96
\li Displays help, including generic Qt options.
97
\row
98
\li \c{-v, --version}
99
\li Displays version information.
100
\endtable
101
102
\section2 Arguments
103
104
\table
105
\header
106
\li Argument
107
\li Description
108
\row
109
\li executable
110
\li The path of the executable file that loads a QML document.
111
\row
112
\li parameters
113
\li Arguments of the executable
114
115
\endtable
116
117
118
*/
qtdeclarative
src
qml
doc
src
tools
qtqml-tooling-qmlprofiler.qdoc
Generated on
for Qt by
1.16.1