forked from qt-creator/qt-creator
Add analyzer new APIs support to plugins.
Merge-request: 284 Reviewed-by: hjk <qtc-committer@nokia.com>
This commit is contained in:
@@ -81,8 +81,9 @@ public:
|
||||
bool m_running;
|
||||
};
|
||||
|
||||
QmlProfilerEngine::QmlProfilerEngine(ProjectExplorer::RunConfiguration *runConfiguration)
|
||||
: IAnalyzerEngine(runConfiguration), d(new QmlProfilerEnginePrivate(this))
|
||||
QmlProfilerEngine::QmlProfilerEngine(const Analyzer::AnalyzerStartParameters &sp, ProjectExplorer::RunConfiguration *runConfiguration)
|
||||
: IAnalyzerEngine(sp, runConfiguration)
|
||||
, d(new QmlProfilerEnginePrivate(this))
|
||||
{
|
||||
ProjectExplorer::LocalApplicationRunConfiguration *localAppConfig =
|
||||
qobject_cast<ProjectExplorer::LocalApplicationRunConfiguration *>(runConfiguration);
|
||||
|
||||
@@ -43,7 +43,8 @@ class QmlProfilerEngine : public Analyzer::IAnalyzerEngine
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
explicit QmlProfilerEngine(ProjectExplorer::RunConfiguration *runConfiguration);
|
||||
explicit QmlProfilerEngine(const Analyzer::AnalyzerStartParameters &sp,
|
||||
ProjectExplorer::RunConfiguration *runConfiguration);
|
||||
~QmlProfilerEngine();
|
||||
|
||||
signals:
|
||||
|
||||
@@ -40,6 +40,7 @@
|
||||
|
||||
#include <analyzerbase/analyzermanager.h>
|
||||
#include <analyzerbase/analyzerconstants.h>
|
||||
#include <analyzerbase/ianalyzeroutputpaneadapter.h>
|
||||
|
||||
#include "timelineview.h"
|
||||
|
||||
@@ -142,9 +143,10 @@ IAnalyzerTool::ToolMode QmlProfilerTool::mode() const
|
||||
}
|
||||
|
||||
|
||||
IAnalyzerEngine *QmlProfilerTool::createEngine(ProjectExplorer::RunConfiguration *runConfiguration)
|
||||
IAnalyzerEngine *QmlProfilerTool::createEngine(const AnalyzerStartParameters &sp,
|
||||
ProjectExplorer::RunConfiguration *runConfiguration)
|
||||
{
|
||||
QmlProfilerEngine *engine = new QmlProfilerEngine(runConfiguration);
|
||||
QmlProfilerEngine *engine = new QmlProfilerEngine(sp, runConfiguration);
|
||||
|
||||
d->m_project = runConfiguration->target()->project();
|
||||
if (d->m_project) {
|
||||
@@ -178,6 +180,10 @@ void QmlProfilerTool::initialize(ExtensionSystem::IPlugin */*plugin*/)
|
||||
d->m_traceWindow->reset(d->m_client);
|
||||
}
|
||||
|
||||
void QmlProfilerTool::extensionsInitialized()
|
||||
{
|
||||
}
|
||||
|
||||
IAnalyzerOutputPaneAdapter *QmlProfilerTool::outputPaneAdapter()
|
||||
{
|
||||
if (!d->m_outputPaneAdapter)
|
||||
@@ -273,3 +279,9 @@ void QmlProfilerTool::updateProjectFileList()
|
||||
d->m_projectFinder.setProjectFiles(
|
||||
d->m_project->files(ProjectExplorer::Project::ExcludeGeneratedFiles));
|
||||
}
|
||||
|
||||
bool QmlProfilerTool::canRunRemotely() const
|
||||
{
|
||||
// TODO: Is this correct?
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -52,13 +52,17 @@ public:
|
||||
ToolMode mode() const;
|
||||
|
||||
void initialize(ExtensionSystem::IPlugin *plugin);
|
||||
void extensionsInitialized();
|
||||
|
||||
Analyzer::IAnalyzerEngine *createEngine(ProjectExplorer::RunConfiguration *runConfiguration);
|
||||
Analyzer::IAnalyzerEngine *createEngine(const Analyzer::AnalyzerStartParameters &sp,
|
||||
ProjectExplorer::RunConfiguration *runConfiguration = 0);
|
||||
|
||||
Analyzer::IAnalyzerOutputPaneAdapter *outputPaneAdapter();
|
||||
QWidget *createToolBarWidget();
|
||||
QWidget *createTimeLineWidget();
|
||||
|
||||
bool canRunRemotely() const;
|
||||
|
||||
public slots:
|
||||
void connectClient();
|
||||
void disconnectClient();
|
||||
|
||||
Reference in New Issue
Block a user