forked from qt-creator/qt-creator
QmlProfiler: Centralize trace/window/range times
Avoid keeping multiple, potentially diverging copies of the same time information and make sure all the times are consistent with each other. Stating the times as properties allows us to use bindings in more places, too. Change-Id: I9cdd4f561ac22ad795939594ba340b1fbc070e9a Reviewed-by: Kai Koehne <kai.koehne@theqtcompany.com>
This commit is contained in:
@@ -76,7 +76,7 @@ private:
|
||||
friend class QmlProfiler::QmlProfilerModelManager;
|
||||
};
|
||||
|
||||
class QmlProfilerTraceTime : public QObject
|
||||
class QMLPROFILER_EXPORT QmlProfilerTraceTime : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
@@ -88,14 +88,12 @@ public:
|
||||
qint64 duration() const;
|
||||
|
||||
signals:
|
||||
void startTimeChanged(qint64);
|
||||
void endTimeChanged(qint64);
|
||||
void timeChanged(qint64,qint64);
|
||||
|
||||
public slots:
|
||||
void clear();
|
||||
void setStartTime(qint64 time);
|
||||
void setEndTime(qint64 time);
|
||||
|
||||
void setTime(qint64 startTime, qint64 endTime);
|
||||
void decreaseStartTime(qint64 time);
|
||||
void increaseEndTime(qint64 time);
|
||||
|
||||
@@ -134,8 +132,6 @@ public:
|
||||
quint64 availableFeatures();
|
||||
static const char *featureName(QmlDebug::ProfileFeature feature);
|
||||
|
||||
qint64 estimatedProfilingTime() const;
|
||||
|
||||
signals:
|
||||
void error(const QString &error);
|
||||
void stateChanged();
|
||||
|
||||
Reference in New Issue
Block a user