2011-03-11 12:22:57 +01:00
|
|
|
#ifndef QMLPROFILERTOOL_H
|
|
|
|
|
#define QMLPROFILERTOOL_H
|
|
|
|
|
|
2011-03-25 09:21:00 +01:00
|
|
|
#include <analyzerbase/ianalyzertool.h>
|
|
|
|
|
#include <analyzerbase/ianalyzerengine.h>
|
2011-03-11 12:22:57 +01:00
|
|
|
|
2011-03-25 09:21:00 +01:00
|
|
|
namespace QmlProfiler {
|
2011-03-11 12:22:57 +01:00
|
|
|
namespace Internal {
|
|
|
|
|
|
2011-03-25 09:21:00 +01:00
|
|
|
class QmlProfilerTool : public Analyzer::IAnalyzerTool
|
2011-03-11 12:22:57 +01:00
|
|
|
{
|
|
|
|
|
Q_OBJECT
|
|
|
|
|
public:
|
|
|
|
|
explicit QmlProfilerTool(QObject *parent = 0);
|
|
|
|
|
~QmlProfilerTool();
|
|
|
|
|
|
|
|
|
|
QString id() const;
|
|
|
|
|
QString displayName() const;
|
|
|
|
|
ToolMode mode() const;
|
|
|
|
|
|
|
|
|
|
void initialize(ExtensionSystem::IPlugin *plugin);
|
|
|
|
|
|
2011-03-25 09:21:00 +01:00
|
|
|
Analyzer::IAnalyzerEngine *createEngine(ProjectExplorer::RunConfiguration *runConfiguration);
|
2011-03-11 12:22:57 +01:00
|
|
|
|
2011-03-25 09:21:00 +01:00
|
|
|
Analyzer::IAnalyzerOutputPaneAdapter *outputPaneAdapter();
|
2011-03-11 12:22:57 +01:00
|
|
|
QWidget *createToolBarWidget();
|
|
|
|
|
QWidget *createTimeLineWidget();
|
|
|
|
|
|
|
|
|
|
public slots:
|
|
|
|
|
void connectClient();
|
|
|
|
|
void disconnectClient();
|
|
|
|
|
|
|
|
|
|
void stopRecording();
|
|
|
|
|
|
|
|
|
|
void gotoSourceLocation(const QString &fileName, int lineNumber);
|
2011-03-24 12:42:15 +01:00
|
|
|
void updateTimer(qreal elapsedSeconds);
|
|
|
|
|
|
|
|
|
|
signals:
|
|
|
|
|
void setTimeLabel(const QString &);
|
2011-03-11 12:22:57 +01:00
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
// Todo: configurable parameters
|
|
|
|
|
static QString host;
|
|
|
|
|
static quint16 port;
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
class QmlProfilerToolPrivate;
|
|
|
|
|
QmlProfilerToolPrivate *d;
|
|
|
|
|
};
|
|
|
|
|
|
2011-03-25 09:21:00 +01:00
|
|
|
} // namespace Internal
|
|
|
|
|
} // namespace QmlProfiler
|
2011-03-11 12:22:57 +01:00
|
|
|
|
|
|
|
|
#endif // QMLPROFILERTOOL_H
|