@@ -47,13 +47,15 @@ static const char socketPath[] = "#Boot2Qt_appcontroller";
47
47
static void usage ()
48
48
{
49
49
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 "
52
53
" \n "
53
54
" --port-range <range> Port range to use for debugging connections\n "
54
55
" --debug-gdb Start GDB debugging\n "
55
56
" --debug-qml Start QML debugging or profiling\n "
56
57
" --qml-debug-services <services> Specify services to use for QML debugging/profiling\n "
58
+ " --profile-perf <params> Start perf profiling\n "
57
59
" --stop Stop already running application\n "
58
60
" --stop-for-restart Stop already running application and prepare to\n "
59
61
" restart it\n "
@@ -351,10 +353,10 @@ int main(int argc, char **argv)
351
353
qmlDebugServices = args.takeFirst ();
352
354
} else if (arg == " --profile-perf" ) {
353
355
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 " );
358
360
return 1 ;
359
361
}
360
362
perfParams = extractPerfParams (args.takeFirst ());
0 commit comments