aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/qmlprofiler/qmlprofilersimplemodel.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/qmlprofiler/qmlprofilersimplemodel.cpp')
-rw-r--r--plugins/qmlprofiler/qmlprofilersimplemodel.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/plugins/qmlprofiler/qmlprofilersimplemodel.cpp b/plugins/qmlprofiler/qmlprofilersimplemodel.cpp
index bf2985de455..52ddc3ac991 100644
--- a/plugins/qmlprofiler/qmlprofilersimplemodel.cpp
+++ b/plugins/qmlprofiler/qmlprofilersimplemodel.cpp
@@ -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())