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,
|
||||
StartRemote = -2,
|
||||
StartQml = -3,
|
||||
StartQmlRemote = -4 // TODO: remove this enum and make it generic
|
||||
};
|
||||
|
||||
|
@@ -68,7 +68,6 @@ Id IAnalyzerTool::actionId(StartMode mode) const
|
||||
return id.withSuffix(".Local");
|
||||
case StartRemote:
|
||||
return id.withSuffix(".Remote");
|
||||
case StartQml:
|
||||
case StartQmlRemote:
|
||||
return id.withSuffix(".Qml");
|
||||
}
|
||||
|
@@ -97,7 +97,7 @@ LocalQmlProfilerRunner::~LocalQmlProfilerRunner()
|
||||
|
||||
void LocalQmlProfilerRunner::start()
|
||||
{
|
||||
if (m_engine->mode() != Analyzer::StartQml)
|
||||
if (m_engine->mode() != Analyzer::StartLocal)
|
||||
return;
|
||||
|
||||
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()
|
||||
{
|
||||
if (m_engine->mode() != Analyzer::StartQml)
|
||||
if (m_engine->mode() != Analyzer::StartLocal)
|
||||
return;
|
||||
|
||||
if (QmlProfilerPlugin::debugOutput)
|
||||
|
@@ -108,7 +108,7 @@ static AnalyzerStartParameters createQmlProfilerStartParameters(RunConfiguration
|
||||
sp.analyzerHost = server.serverAddress().toString();
|
||||
sp.analyzerPort = server.serverPort();
|
||||
}
|
||||
sp.startMode = StartQml;
|
||||
sp.startMode = StartLocal;
|
||||
return sp;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user