On this page

Command-line options

{TODO: intro sentence - how to invoke Qt Profiler from a terminal, including the macOS bundle path, which differs from the plain executable name. See the bundle naming in src/tools/qtprofiler/CMakeLists.txt}

Synopsis

{TODO: code block with the usage line. The positional argument is a trace file: a QML trace, a Chrome Trace Format file, or a Common Trace Format trace directory or its metadata file}

Options

OptionDescription
-e, --exit-on-errorExits on error.
-r, --rpcActivates JSON-RPC 2.0 over stdio.
--rpc-schemaPrints the schema to stdout and exits.
-t, --title <title>Default is the trace file name.
-l, --launch <command>Starts profiling the selected application. Takes a full command line, such as /path/to/app --arg.
-b, --backend <name>Starts profiling using the selected tool. Matched by name using case-insensitive substring match.
--record-for <seconds>Sets the time to record trace for the launched application using the selected tool.
--helpShows help for the command-line commands.
--versionShows the Qt Profiler version

See also Getting started and Record a trace.

Copyright © The Qt Company Ltd. and other contributors. 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.