forked from qt-creator/qt-creator
Add texture deletion events to scene graph profiler
It seems those were forgotten when the scene graph profiler was refactored. Change-Id: I4cf5f1cae701ec4ff64659bd023fb5941715e7e1 Reviewed-by: Kai Koehne <kai.koehne@digia.com>
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user