forked from qt-creator/qt-creator
51 lines
1.0 KiB
C
51 lines
1.0 KiB
C
|
|
#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
|