aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorShawn Rutledge <shawn.rutledge@qt.io>2023-08-29 14:54:15 +0200
committerShawn Rutledge <shawn.rutledge@qt.io>2023-08-29 18:46:54 +0200
commit0ba9ff8b0552fe0928770b5b4cd5f43d3aa3445c (patch)
treec2a02234d02a4f446e4448b5aa4daa62f12f4ae9
parent4798a9c14c316d2fe1c3048a32586abb6316fee4 (diff)
Debug leaked resource info into the qt.scenegraph.leaks logging category
...rather than plain qDebug(). Amends 71e6a60a3d9c33b821de09ab4e7eed9eefbf38c6 Change-Id: I18f810f10d7afb5cc639c1ab3a52f8783c78a55f Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
-rw-r--r--src/quick/scenegraph/coreapi/qsgmaterial.cpp2
-rw-r--r--src/quick/scenegraph/coreapi/qsgnode.cpp2
-rw-r--r--src/quick/scenegraph/coreapi/qsgtexture.cpp2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/quick/scenegraph/coreapi/qsgmaterial.cpp b/src/quick/scenegraph/coreapi/qsgmaterial.cpp
index d9cf3554b4..64fc2d94e0 100644
--- a/src/quick/scenegraph/coreapi/qsgmaterial.cpp
+++ b/src/quick/scenegraph/coreapi/qsgmaterial.cpp
@@ -37,7 +37,7 @@ static int qt_material_count = 0;
static void qt_print_material_count()
{
- qDebug("Number of leaked materials: %i", qt_material_count);
+ qCDebug(lcQsgLeak, "Number of leaked materials: %i", qt_material_count);
qt_material_count = -1;
}
#endif
diff --git a/src/quick/scenegraph/coreapi/qsgnode.cpp b/src/quick/scenegraph/coreapi/qsgnode.cpp
index 4e019a7268..b77f33d6a3 100644
--- a/src/quick/scenegraph/coreapi/qsgnode.cpp
+++ b/src/quick/scenegraph/coreapi/qsgnode.cpp
@@ -18,7 +18,7 @@ static int qt_node_count = 0;
static void qt_print_node_count()
{
- qDebug("Number of leaked nodes: %i", qt_node_count);
+ qCDebug(lcQsgLeak, "Number of leaked nodes: %i", qt_node_count);
qt_node_count = -1;
}
#endif
diff --git a/src/quick/scenegraph/coreapi/qsgtexture.cpp b/src/quick/scenegraph/coreapi/qsgtexture.cpp
index 6dc01d5ad0..d138b56625 100644
--- a/src/quick/scenegraph/coreapi/qsgtexture.cpp
+++ b/src/quick/scenegraph/coreapi/qsgtexture.cpp
@@ -119,7 +119,7 @@ static QHash<QSGTexture*, SGTextureTraceItem*> qt_debug_allocated_textures;
inline static void qt_debug_print_texture_count()
{
- qDebug("Number of leaked textures: %i", qt_debug_texture_count);
+ qCDebug(lcQsgLeak, "Number of leaked textures: %i", qt_debug_texture_count);
qt_debug_texture_count = -1;
#if defined(CAN_BACKTRACE_EXECINFO)