From 8009ed3a3cdc1f17295d83759363d2d3cbd7e1bc Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Fri, 26 Jan 2024 18:57:02 -0500 Subject: [PATCH] gpu: Add more details to debug spew Print the number of items in the cache hash tables. --- gsk/gpu/gskgpudevice.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/gsk/gpu/gskgpudevice.c b/gsk/gpu/gskgpudevice.c index ef87e2d132..29395ceed2 100644 --- a/gsk/gpu/gskgpudevice.c +++ b/gsk/gpu/gskgpudevice.c @@ -421,11 +421,13 @@ print_cache_stats (GskGpuDevice *self) if (ratios->len > 0) g_string_append (ratios, ")"); - gdk_debug_message ("cached items\n" + gdk_debug_message ("Cached items\n" " glyphs: %5u (%u stale)\n" - " textures: %5u\n" + " textures: %5u (%u in hash)\n" " atlases: %5u%s", - glyphs, stale_glyphs, textures, atlases, ratios->str); + glyphs, stale_glyphs, + textures, g_hash_table_size (priv->texture_cache), + atlases, ratios->str); g_string_free (ratios, TRUE); }