From cd0b001ec8153515b4af549e4b111bada14ebce7 Mon Sep 17 00:00:00 2001 From: Ulf Hermann Date: Thu, 21 May 2015 17:13:03 +0200 Subject: qmlprofiler: Improve options for trace output * Remove the auto-generation of file names. * Accept file names as parameters or from interactive commands * Output to stdout by default for better scripting and quick preview * Decouple output from clearing of data so that you can write the same data multiple times. Task-number: QTBUG-43066 Change-Id: Ia4cc3701cbac7c6f8948b11307130a5d6a2ff44c Reviewed-by: Joerg Bornemann --- tools/qmlprofiler/constants.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'tools/qmlprofiler/constants.h') diff --git a/tools/qmlprofiler/constants.h b/tools/qmlprofiler/constants.h index b925ba00e8..5b4b52515f 100644 --- a/tools/qmlprofiler/constants.h +++ b/tools/qmlprofiler/constants.h @@ -39,9 +39,24 @@ namespace Constants { const char CMD_RECORD[] ="record"; const char CMD_RECORD2[] ="r"; +const char CMD_OUTPUT[] = "output"; +const char CMD_OUTPUT2[] = "o"; + +const char CMD_FLUSH[] = "flush"; +const char CMD_FLUSH2[] = "f"; + +const char CMD_CLEAR[] = "clear"; +const char CMD_CLEAR2[] = "c"; + const char CMD_QUIT[] ="quit"; const char CMD_QUIT2[] = "q"; +const char CMD_YES[] = "yes"; +const char CMD_YES2[] = "y"; + +const char CMD_NO[] = "no"; +const char CMD_NO2[] = "n"; + } // Constants #endif // CONSTANTS_H -- cgit v1.2.3