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.