forked from qt-creator/qt-creator
QmlProfiler: first commit
This commit is contained in:
50
src/plugins/qmlprofiler/qmlprofilertool.h
Normal file
50
src/plugins/qmlprofiler/qmlprofilertool.h
Normal file
@@ -0,0 +1,50 @@
|
||||
#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);
|
||||
|
||||
public:
|
||||
// Todo: configurable parameters
|
||||
static QString host;
|
||||
static quint16 port;
|
||||
|
||||
private:
|
||||
class QmlProfilerToolPrivate;
|
||||
QmlProfilerToolPrivate *d;
|
||||
};
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
#endif // QMLPROFILERTOOL_H
|
||||
Reference in New Issue
Block a user