Skip to content

Commit af3ab8e

Browse files
committed
Add note about --profile-perf to usage message
Change-Id: I50163b3c5f085f12f102fb0eb455eaf6ebda6ffa Reviewed-by: Rainer Keller <[email protected]>
1 parent 6b5ef93 commit af3ab8e

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

main.cpp

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -47,13 +47,15 @@ static const char socketPath[] = "#Boot2Qt_appcontroller";
4747
static void usage()
4848
{
4949
printf("appcontroller [--debug-gdb] [--debug-qml] [--qml-debug-services <services>]"
50-
" [--port-range <range>] [--stop] [--launch] [--show-platfrom] [--make-default]"
51-
" [--remove-default] [--print-debug] [--version] [--detach] [executable] [arguments]\n"
50+
" [--profile-perf <params>] [--port-range <range>] [--stop] [--launch] [--show-platfrom]"
51+
" [--make-default] [--remove-default] [--print-debug] [--version] [--detach]"
52+
" [executable] [arguments]\n"
5253
"\n"
5354
"--port-range <range> Port range to use for debugging connections\n"
5455
"--debug-gdb Start GDB debugging\n"
5556
"--debug-qml Start QML debugging or profiling\n"
5657
"--qml-debug-services <services> Specify services to use for QML debugging/profiling\n"
58+
"--profile-perf <params> Start perf profiling\n"
5759
"--stop Stop already running application\n"
5860
"--stop-for-restart Stop already running application and prepare to\n"
5961
" restart it\n"
@@ -351,10 +353,10 @@ int main(int argc, char **argv)
351353
qmlDebugServices = args.takeFirst();
352354
} else if (arg == "--profile-perf") {
353355
if (args.isEmpty()) {
354-
fprintf(stderr, "--profile-perf requires comma-separated list of parameters that "
355-
"get passed to \"perf record\". Arguments \"-o -\" are "
356-
"automatically appended to capture the output as stream. "
357-
"Escape commas by doubling them.");
356+
fprintf(stderr, "--profile-perf requires comma-separated list of parameters that\n"
357+
"get passed to \"perf record\". Arguments \"-o -\" are\n"
358+
"automatically appended to capture the output as stream.\n"
359+
"Escape commas by doubling them.\n");
358360
return 1;
359361
}
360362
perfParams = extractPerfParams(args.takeFirst());

0 commit comments

Comments
 (0)