forked from qt-creator/qt-creator
QmlProfilerTool: Take -recordStart parameter into account
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>
This commit is contained in:
@@ -80,7 +80,6 @@ QmlProfilerApplication::QmlProfilerApplication(int &argc, char **argv) :
|
|||||||
m_tracePrefix("trace"),
|
m_tracePrefix("trace"),
|
||||||
m_hostName(QLatin1String("127.0.0.1")),
|
m_hostName(QLatin1String("127.0.0.1")),
|
||||||
m_port(3768),
|
m_port(3768),
|
||||||
m_recordFromStart(false),
|
|
||||||
m_verbose(false),
|
m_verbose(false),
|
||||||
m_quitAfterSave(false),
|
m_quitAfterSave(false),
|
||||||
m_traceClient(&m_connection),
|
m_traceClient(&m_connection),
|
||||||
@@ -139,7 +138,7 @@ bool QmlProfilerApplication::parseArguments()
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
} else if (arg == "-fromStart") {
|
} else if (arg == "-fromStart") {
|
||||||
m_recordFromStart = true;
|
m_traceClient.setRecording(true);
|
||||||
} else if (arg == "-help" || arg == "-h" || arg == "/h" || arg == "/?") {
|
} else if (arg == "-help" || arg == "-h" || arg == "/h" || arg == "/?") {
|
||||||
return false;
|
return false;
|
||||||
} else if (arg == "-verbose" || arg == "-v") {
|
} else if (arg == "-verbose" || arg == "-v") {
|
||||||
|
@@ -92,7 +92,6 @@ private:
|
|||||||
|
|
||||||
QString m_hostName;
|
QString m_hostName;
|
||||||
quint16 m_port;
|
quint16 m_port;
|
||||||
bool m_recordFromStart;
|
|
||||||
bool m_verbose;
|
bool m_verbose;
|
||||||
bool m_quitAfterSave;
|
bool m_quitAfterSave;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user