#ifndef QMLPROFILERTOOL_H #define QMLPROFILERTOOL_H #include "ianalyzertool.h" #include "ianalyzerengine.h" namespace Analyzer { namespace Internal { class QmlProfilerTool : public IAnalyzerTool { Q_OBJECT public: explicit QmlProfilerTool(QObject *parent = 0); ~QmlProfilerTool(); QString id() const; QString displayName() const; ToolMode mode() const; void initialize(ExtensionSystem::IPlugin *plugin); IAnalyzerEngine *createEngine(ProjectExplorer::RunConfiguration *runConfiguration); IAnalyzerOutputPaneAdapter *outputPaneAdapter(); QWidget *createToolBarWidget(); QWidget *createTimeLineWidget(); public slots: void connectClient(); void disconnectClient(); void stopRecording(); void gotoSourceLocation(const QString &fileName, int lineNumber); void updateTimer(qreal elapsedSeconds); signals: void setTimeLabel(const QString &); public: // Todo: configurable parameters static QString host; static quint16 port; private: class QmlProfilerToolPrivate; QmlProfilerToolPrivate *d; }; } } #endif // QMLPROFILERTOOL_H