forked from qt-creator/qt-creator
QmlProfiler: Rename QmlProfilerDataModel::addEvent()
We will get another variant, without type. Change-Id: I06bd47955ef909b2f467425bb9ad8c8b3e3dce27 Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
This commit is contained in:
@@ -241,7 +241,7 @@ int QmlProfilerDataModel::QmlProfilerDataModelPrivate::resolveStackTop()
|
|||||||
return typeIndex;
|
return typeIndex;
|
||||||
}
|
}
|
||||||
|
|
||||||
void QmlProfilerDataModel::addEvent(const QmlEvent &event, const QmlEventType &type)
|
void QmlProfilerDataModel::addTypedEvent(const QmlEvent &event, const QmlEventType &type)
|
||||||
{
|
{
|
||||||
Q_D(QmlProfilerDataModel);
|
Q_D(QmlProfilerDataModel);
|
||||||
|
|
||||||
|
|||||||
@@ -51,7 +51,7 @@ public:
|
|||||||
|
|
||||||
void clear();
|
void clear();
|
||||||
bool isEmpty() const;
|
bool isEmpty() const;
|
||||||
void addEvent(const QmlEvent &event, const QmlEventType &type);
|
void addTypedEvent(const QmlEvent &event, const QmlEventType &type);
|
||||||
void replayEvents(qint64 startTime, qint64 endTime,
|
void replayEvents(qint64 startTime, qint64 endTime,
|
||||||
QmlProfilerModelManager::EventLoader loader) const;
|
QmlProfilerModelManager::EventLoader loader) const;
|
||||||
void finalize();
|
void finalize();
|
||||||
|
|||||||
@@ -262,7 +262,7 @@ const char *QmlProfilerModelManager::featureName(ProfileFeature feature)
|
|||||||
void QmlProfilerModelManager::addQmlEvent(const QmlEvent &event, const QmlEventType &type)
|
void QmlProfilerModelManager::addQmlEvent(const QmlEvent &event, const QmlEventType &type)
|
||||||
{
|
{
|
||||||
QTC_ASSERT(state() == AcquiringData, return);
|
QTC_ASSERT(state() == AcquiringData, return);
|
||||||
d->model->addEvent(event, type);
|
d->model->addTypedEvent(event, type);
|
||||||
}
|
}
|
||||||
|
|
||||||
void QmlProfilerModelManager::acquiringDone()
|
void QmlProfilerModelManager::acquiringDone()
|
||||||
|
|||||||
Reference in New Issue
Block a user