forked from qt-creator/qt-creator
Analyzer: Remove AnalyzerStartParameters from AnalyzerRunControl ctor
Change-Id: I0f7e982a9144469869e0c42daedfb411789511ca Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
This commit is contained in:
@@ -71,9 +71,8 @@ public:
|
||||
// QmlProfilerRunControl
|
||||
//
|
||||
|
||||
QmlProfilerRunControl::QmlProfilerRunControl(const AnalyzerStartParameters &sp,
|
||||
RunConfiguration *runConfiguration)
|
||||
: AnalyzerRunControl(sp, runConfiguration, ProjectExplorer::Constants::QML_PROFILER_RUN_MODE)
|
||||
QmlProfilerRunControl::QmlProfilerRunControl(RunConfiguration *runConfiguration)
|
||||
: AnalyzerRunControl(runConfiguration, ProjectExplorer::Constants::QML_PROFILER_RUN_MODE)
|
||||
, d(new QmlProfilerRunControlPrivate)
|
||||
{
|
||||
// Only wait 4 seconds for the 'Waiting for connection' on application output, then just try to connect
|
||||
|
||||
@@ -38,8 +38,7 @@ class QmlProfilerRunControl : public Analyzer::AnalyzerRunControl
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
QmlProfilerRunControl(const Analyzer::AnalyzerStartParameters &sp,
|
||||
ProjectExplorer::RunConfiguration *runConfiguration);
|
||||
QmlProfilerRunControl(ProjectExplorer::RunConfiguration *runConfiguration);
|
||||
~QmlProfilerRunControl();
|
||||
|
||||
void registerProfilerStateManager( QmlProfilerStateManager *profilerState );
|
||||
|
||||
@@ -215,7 +215,9 @@ AnalyzerRunControl *QmlProfilerTool::createRunControl(const AnalyzerStartParamet
|
||||
settings->flushInterval() : 0);
|
||||
d->m_profilerConnections->setAggregateTraces(settings->aggregateTraces());
|
||||
|
||||
QmlProfilerRunControl *engine = new QmlProfilerRunControl(sp, runConfiguration);
|
||||
QmlProfilerRunControl *engine = new QmlProfilerRunControl(runConfiguration);
|
||||
engine->setRunnable(AnalyzerRunnable(sp));
|
||||
engine->setConnection(AnalyzerConnection(sp));
|
||||
|
||||
engine->registerProfilerStateManager(d->m_profilerState);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user