aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@digia.com>2014-10-15 17:18:01 +0200
committerKai Koehne <kai.koehne@digia.com>2014-10-16 09:45:59 +0300
commit6438cacf1ad414a85a7786004c510a2bd9a1a116 (patch)
tree108debcd0d909476dfe7a3bc91edd6abde50eb62
parent660478b4c8774fc5af06293fa046a9ad1cf7c8e3 (diff)
Add texture deletion events to scene graph profilerqp-v3.3.0-beta1
It seems those were forgotten when the scene graph profiler was refactored. Change-Id: I4cf5f1cae701ec4ff64659bd023fb5941715e7e1 Reviewed-by: Kai Koehne <kai.koehne@digia.com>
-rw-r--r--plugins/qmlprofilerextension/scenegraphtimelinemodel.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/plugins/qmlprofilerextension/scenegraphtimelinemodel.cpp b/plugins/qmlprofilerextension/scenegraphtimelinemodel.cpp
index 9e3bb96b18..27998d313f 100644
--- a/plugins/qmlprofilerextension/scenegraphtimelinemodel.cpp
+++ b/plugins/qmlprofilerextension/scenegraphtimelinemodel.cpp
@@ -54,7 +54,8 @@ static const char *StageLabels[] = {
QT_TRANSLATE_NOOP("MainView", "Texture Convert"),
QT_TRANSLATE_NOOP("MainView", "Texture Swizzle"),
QT_TRANSLATE_NOOP("MainView", "Texture Upload"),
- QT_TRANSLATE_NOOP("MainView", "Texture Mipmap")
+ QT_TRANSLATE_NOOP("MainView", "Texture Mipmap"),
+ QT_TRANSLATE_NOOP("MainView", "Texture Delete")
};
enum SceneGraphCategoryType {
@@ -96,6 +97,7 @@ enum SceneGraphStage {
TextureSwizzle,
TextureUpload,
TextureMipmap,
+ TextureDeletion,
MaximumTextureStage,
MaximumSceneGraphStage = MaximumTextureStage
@@ -246,6 +248,11 @@ void SceneGraphTimelineModel::loadData()
d->insert(startTime, event.numericData5, event.typeIndex, TextureMipmap);
break;
}
+ case QmlDebug::SceneGraphTextureDeletion: {
+ d->insert(event.startTime - event.numericData1, event.numericData1, event.typeIndex,
+ TextureDeletion);
+ break;
+ }
case QmlDebug::SceneGraphPolishAndSync: {
qint64 startTime = event.startTime - event.numericData1 - event.numericData2 -
event.numericData3 - event.numericData4;