forked from qt-creator/qt-creator
QmlProfiler: Use StartLocal instead of StartQml start mode.
Change-Id: Iee7895e9cafc373c32749f3dcc44a690dfc551bc Reviewed-by: hjk <hjk121@nokiamail.com>
This commit is contained in:
@@ -44,7 +44,6 @@ enum StartMode
|
|||||||
{
|
{
|
||||||
StartLocal = -1,
|
StartLocal = -1,
|
||||||
StartRemote = -2,
|
StartRemote = -2,
|
||||||
StartQml = -3,
|
|
||||||
StartQmlRemote = -4 // TODO: remove this enum and make it generic
|
StartQmlRemote = -4 // TODO: remove this enum and make it generic
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@@ -68,7 +68,6 @@ Id IAnalyzerTool::actionId(StartMode mode) const
|
|||||||
return id.withSuffix(".Local");
|
return id.withSuffix(".Local");
|
||||||
case StartRemote:
|
case StartRemote:
|
||||||
return id.withSuffix(".Remote");
|
return id.withSuffix(".Remote");
|
||||||
case StartQml:
|
|
||||||
case StartQmlRemote:
|
case StartQmlRemote:
|
||||||
return id.withSuffix(".Qml");
|
return id.withSuffix(".Qml");
|
||||||
}
|
}
|
||||||
|
@@ -97,7 +97,7 @@ LocalQmlProfilerRunner::~LocalQmlProfilerRunner()
|
|||||||
|
|
||||||
void LocalQmlProfilerRunner::start()
|
void LocalQmlProfilerRunner::start()
|
||||||
{
|
{
|
||||||
if (m_engine->mode() != Analyzer::StartQml)
|
if (m_engine->mode() != Analyzer::StartLocal)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
QString arguments = QString::fromLatin1("-qmljsdebugger=port:%1,block").arg(m_configuration.port);
|
QString arguments = QString::fromLatin1("-qmljsdebugger=port:%1,block").arg(m_configuration.port);
|
||||||
@@ -136,7 +136,7 @@ void LocalQmlProfilerRunner::spontaneousStop(int exitCode, QProcess::ExitStatus
|
|||||||
|
|
||||||
void LocalQmlProfilerRunner::stop()
|
void LocalQmlProfilerRunner::stop()
|
||||||
{
|
{
|
||||||
if (m_engine->mode() != Analyzer::StartQml)
|
if (m_engine->mode() != Analyzer::StartLocal)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (QmlProfilerPlugin::debugOutput)
|
if (QmlProfilerPlugin::debugOutput)
|
||||||
|
@@ -108,7 +108,7 @@ static AnalyzerStartParameters createQmlProfilerStartParameters(RunConfiguration
|
|||||||
sp.analyzerHost = server.serverAddress().toString();
|
sp.analyzerHost = server.serverAddress().toString();
|
||||||
sp.analyzerPort = server.serverPort();
|
sp.analyzerPort = server.serverPort();
|
||||||
}
|
}
|
||||||
sp.startMode = StartQml;
|
sp.startMode = StartLocal;
|
||||||
return sp;
|
return sp;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user