forked from qt-creator/qt-creator
Analyzer: Simplify IAnalyzerEngine interface
Change-Id: Id5eac0145e04b809bf535087d3bb9a04124c2e87 Reviewed-by: Aurindam Jana <aurindam.jana@digia.com> Reviewed-by: Christiaan Janssen <christiaan.janssen@digia.com>
This commit is contained in:
@@ -77,10 +77,9 @@ public:
|
||||
// QmlProfilerEngine
|
||||
//
|
||||
|
||||
QmlProfilerEngine::QmlProfilerEngine(IAnalyzerTool *tool,
|
||||
const Analyzer::AnalyzerStartParameters &sp,
|
||||
QmlProfilerEngine::QmlProfilerEngine(const Analyzer::AnalyzerStartParameters &sp,
|
||||
ProjectExplorer::RunConfiguration *runConfiguration)
|
||||
: IAnalyzerEngine(tool, sp, runConfiguration)
|
||||
: IAnalyzerEngine(sp, runConfiguration)
|
||||
, d(new QmlProfilerEnginePrivate(sp))
|
||||
{
|
||||
d->m_profilerState = 0;
|
||||
|
||||
@@ -30,8 +30,9 @@
|
||||
#ifndef QMLPROFILERENGINE_H
|
||||
#define QMLPROFILERENGINE_H
|
||||
|
||||
#include <analyzerbase/ianalyzerengine.h>
|
||||
#include "qmlprofilerstatemanager.h"
|
||||
|
||||
#include <analyzerbase/ianalyzerengine.h>
|
||||
#include <utils/outputformat.h>
|
||||
|
||||
namespace QmlProfiler {
|
||||
@@ -42,8 +43,7 @@ class QmlProfilerEngine : public Analyzer::IAnalyzerEngine
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
QmlProfilerEngine(Analyzer::IAnalyzerTool *tool,
|
||||
const Analyzer::AnalyzerStartParameters &sp,
|
||||
QmlProfilerEngine(const Analyzer::AnalyzerStartParameters &sp,
|
||||
ProjectExplorer::RunConfiguration *runConfiguration);
|
||||
~QmlProfilerEngine();
|
||||
|
||||
|
||||
@@ -223,7 +223,7 @@ IAnalyzerTool::ToolMode QmlProfilerTool::toolMode() const
|
||||
IAnalyzerEngine *QmlProfilerTool::createEngine(const AnalyzerStartParameters &sp,
|
||||
RunConfiguration *runConfiguration)
|
||||
{
|
||||
QmlProfilerEngine *engine = new QmlProfilerEngine(this, sp, runConfiguration);
|
||||
QmlProfilerEngine *engine = new QmlProfilerEngine(sp, runConfiguration);
|
||||
|
||||
engine->registerProfilerStateManager(d->m_profilerState);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user