forked from qt-creator/qt-creator
QmlProfiler: finalize setup when starting
Change-Id: If7cf8158bf4c0cd6a2ffff2d5157a98f2d8c0f50 Reviewed-by: hjk <hjk@theqtcompany.com>
This commit is contained in:
@@ -106,6 +106,7 @@ QmlProfilerRunControl::~QmlProfilerRunControl()
|
||||
|
||||
bool QmlProfilerRunControl::startEngine()
|
||||
{
|
||||
d->m_tool->finalizeRunControl(this);
|
||||
QTC_ASSERT(d->m_profilerState, return false);
|
||||
|
||||
if (connection().analyzerPort != 0)
|
||||
@@ -252,11 +253,6 @@ void QmlProfilerRunControl::registerProfilerStateManager( QmlProfilerStateManage
|
||||
this, &QmlProfilerRunControl::profilerStateChanged);
|
||||
}
|
||||
|
||||
void QmlProfilerRunControl::finalizeSetup()
|
||||
{
|
||||
d->m_tool->finalizeRunControl(this);
|
||||
}
|
||||
|
||||
void QmlProfilerRunControl::profilerStateChanged()
|
||||
{
|
||||
switch (d->m_profilerState->currentState()) {
|
||||
|
@@ -45,7 +45,6 @@ public:
|
||||
~QmlProfilerRunControl();
|
||||
|
||||
void registerProfilerStateManager( QmlProfilerStateManager *profilerState );
|
||||
void finalizeSetup();
|
||||
|
||||
void notifyRemoteSetupDone(quint16 port);
|
||||
StopResult stop();
|
||||
|
@@ -98,7 +98,6 @@ RunControl *QmlProfilerRunControlFactory::create(RunConfiguration *runConfigurat
|
||||
|
||||
runControl->setRunnable(runnable);
|
||||
runControl->setConnection(connection);
|
||||
runControl->finalizeSetup();
|
||||
|
||||
LocalQmlProfilerRunner::Configuration conf;
|
||||
conf.executable = runnable.debuggee;
|
||||
|
@@ -527,7 +527,6 @@ void QmlProfilerTool::startRemoteTool()
|
||||
|
||||
auto runControl = qobject_cast<QmlProfilerRunControl *>(createRunControl(0));
|
||||
runControl->setConnection(connection);
|
||||
runControl->finalizeSetup();
|
||||
|
||||
ProjectExplorerPlugin::startRunControl(runControl, ProjectExplorer::Constants::QML_PROFILER_RUN_MODE);
|
||||
}
|
||||
|
Reference in New Issue
Block a user