OSDN Git Service

QmlProfilerTool: Take -recordStart parameter into account
authorKai Koehne <kai.koehne@nokia.com>
Wed, 24 Aug 2011 12:36:16 +0000 (14:36 +0200)
committerKai Koehne <kai.koehne@nokia.com>
Wed, 24 Aug 2011 14:09:58 +0000 (16:09 +0200)
Change-Id: Ib371e73d7416409e5c102155efbd0257676567f4
Reviewed-on: http://codereview.qt.nokia.com/3497
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Christiaan Janssen <christiaan.janssen@nokia.com>
src/tools/qmlprofiler/qmlprofilerapplication.cpp
src/tools/qmlprofiler/qmlprofilerapplication.h

index dcfc701..ab1e035 100644 (file)
@@ -80,7 +80,6 @@ QmlProfilerApplication::QmlProfilerApplication(int &argc, char **argv) :
     m_tracePrefix("trace"),
     m_hostName(QLatin1String("127.0.0.1")),
     m_port(3768),
-    m_recordFromStart(false),
     m_verbose(false),
     m_quitAfterSave(false),
     m_traceClient(&m_connection),
@@ -139,7 +138,7 @@ bool QmlProfilerApplication::parseArguments()
                 return false;
             }
         } else if (arg == "-fromStart") {
-            m_recordFromStart = true;
+            m_traceClient.setRecording(true);
         } else if (arg == "-help" || arg == "-h" || arg == "/h" || arg == "/?") {
             return false;
         } else if (arg == "-verbose" || arg == "-v") {
index 3bbed05..5bc0ff0 100644 (file)
@@ -92,7 +92,6 @@ private:
 
     QString m_hostName;
     quint16 m_port;
-    bool m_recordFromStart;
     bool m_verbose;
     bool m_quitAfterSave;