diff options
author | Ulf Hermann <ulf.hermann@theqtcompany.com> | 2015-08-14 11:18:40 +0200 |
---|---|---|
committer | Ulf Hermann <ulf.hermann@theqtcompany.com> | 2015-09-15 10:19:49 +0000 |
commit | af3ab8ec0213a40d90f3d58a8a65a944b0cd753e (patch) | |
tree | 7871b52b9eaa1aa91e57eb50fcc475110ac31977 | |
parent | 6b5ef93020d471fe21152e2428e2f0c5bc7dc24d (diff) |
Add note about --profile-perf to usage message
Change-Id: I50163b3c5f085f12f102fb0eb455eaf6ebda6ffa
Reviewed-by: Rainer Keller <rainer.keller@theqtcompany.com>
-rw-r--r-- | main.cpp | 14 |
1 files changed, 8 insertions, 6 deletions
@@ -47,13 +47,15 @@ static const char socketPath[] = "#Boot2Qt_appcontroller"; static void usage() { printf("appcontroller [--debug-gdb] [--debug-qml] [--qml-debug-services <services>]" - " [--port-range <range>] [--stop] [--launch] [--show-platfrom] [--make-default]" - " [--remove-default] [--print-debug] [--version] [--detach] [executable] [arguments]\n" + " [--profile-perf <params>] [--port-range <range>] [--stop] [--launch] [--show-platfrom]" + " [--make-default] [--remove-default] [--print-debug] [--version] [--detach]" + " [executable] [arguments]\n" "\n" "--port-range <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 <services> Specify services to use for QML debugging/profiling\n" + "--profile-perf <params> 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()); |