QmlProfiler: first commit

This commit is contained in:
Christiaan Janssen
2011-03-11 12:22:57 +01:00
parent 39daf23247
commit f774556de7
40 changed files with 4337 additions and 1 deletions

View 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