From af3ab8ec0213a40d90f3d58a8a65a944b0cd753e Mon Sep 17 00:00:00 2001 From: Ulf Hermann Date: Fri, 14 Aug 2015 11:18:40 +0200 Subject: Add note about --profile-perf to usage message Change-Id: I50163b3c5f085f12f102fb0eb455eaf6ebda6ffa Reviewed-by: Rainer Keller --- main.cpp | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/main.cpp b/main.cpp index a1188f0..7b8b7be 100644 --- a/main.cpp +++ b/main.cpp @@ -47,13 +47,15 @@ static const char socketPath[] = "#Boot2Qt_appcontroller"; static void usage() { printf("appcontroller [--debug-gdb] [--debug-qml] [--qml-debug-services ]" - " [--port-range ] [--stop] [--launch] [--show-platfrom] [--make-default]" - " [--remove-default] [--print-debug] [--version] [--detach] [executable] [arguments]\n" + " [--profile-perf ] [--port-range ] [--stop] [--launch] [--show-platfrom]" + " [--make-default] [--remove-default] [--print-debug] [--version] [--detach]" + " [executable] [arguments]\n" "\n" "--port-range Port range to use for debugging connections\n" "--debug-gdb Start GDB debugging\n" "--debug-qml Start QML debugging or profiling\n" "--qml-debug-services Specify services to use for QML debugging/profiling\n" + "--profile-perf Start perf profiling\n" "--stop Stop already running application\n" "--stop-for-restart Stop already running application and prepare to\n" " restart it\n" @@ -351,10 +353,10 @@ int main(int argc, char **argv) qmlDebugServices = args.takeFirst(); } else if (arg == "--profile-perf") { if (args.isEmpty()) { - fprintf(stderr, "--profile-perf requires comma-separated list of parameters that " - "get passed to \"perf record\". Arguments \"-o -\" are " - "automatically appended to capture the output as stream. " - "Escape commas by doubling them."); + fprintf(stderr, "--profile-perf requires comma-separated list of parameters that\n" + "get passed to \"perf record\". Arguments \"-o -\" are\n" + "automatically appended to capture the output as stream.\n" + "Escape commas by doubling them.\n"); return 1; } perfParams = extractPerfParams(args.takeFirst()); -- cgit v1.2.3