Files
qt-creator/src/plugins/qmlprofiler/qmlprofilertool.h

55 lines
1.2 KiB
C
Raw Normal View History

2011-03-11 12:22:57 +01:00
#ifndef QMLPROFILERTOOL_H
#define QMLPROFILERTOOL_H
#include <analyzerbase/ianalyzertool.h>
#include <analyzerbase/ianalyzerengine.h>
2011-03-11 12:22:57 +01:00
namespace QmlProfiler {
2011-03-11 12:22:57 +01:00
namespace Internal {
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);
Analyzer::IAnalyzerEngine *createEngine(ProjectExplorer::RunConfiguration *runConfiguration);
2011-03-11 12:22:57 +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;
};
} // namespace Internal
} // namespace QmlProfiler
2011-03-11 12:22:57 +01:00
#endif // QMLPROFILERTOOL_H