forked from qt-creator/qt-creator
QmlProfilerExtended: Pixmap Cache model
Change-Id: Ib0ac48b30406269a6090dbbc6e047653e279a9bf Reviewed-by: Kai Koehne <kai.koehne@digia.com>
This commit is contained in:
committed by
Kai Koehne
parent
698958c92d
commit
0ce1d6751c
@@ -88,6 +88,13 @@ void QmlProfilerSimpleModel::addSceneGraphEvent(int eventType, int SGEtype, qint
|
||||
eventList.append(eventData);
|
||||
}
|
||||
|
||||
void QmlProfilerSimpleModel::addPixmapCacheEvent(qint64 time, int cacheEventType, const QString &url, int width, int height, int refCount)
|
||||
{
|
||||
QmlDebug::QmlEventLocation location(url, 0, 0);
|
||||
QmlEventData eventData = {QString(), QmlDebug::PixmapCacheEvent, cacheEventType, time, 0, QStringList(), location, width, height, refCount, -1, -1};
|
||||
eventList.append(eventData);
|
||||
}
|
||||
|
||||
qint64 QmlProfilerSimpleModel::lastTimeMark() const
|
||||
{
|
||||
if (eventList.isEmpty())
|
||||
|
||||
Reference in New Issue
Block a user