[gtk/wip/chergert/glproto: 267/493] add some debug code




commit cc9ace20f17ed8cfaca2f1002620176f4f353669
Author: Christian Hergert <chergert redhat com>
Date:   Wed Jan 27 15:10:22 2021 -0800

    add some debug code
    
    later on we'll want this to get put into the profiler

 gsk/next/gskgldriver.c | 10 ++++++++++
 1 file changed, 10 insertions(+)
---
diff --git a/gsk/next/gskgldriver.c b/gsk/next/gskgldriver.c
index 2a43989792..ea6569c122 100644
--- a/gsk/next/gskgldriver.c
+++ b/gsk/next/gskgldriver.c
@@ -544,6 +544,16 @@ gsk_next_driver_end_frame (GskNextDriver *self)
       self->autorelease_framebuffers->len = 0;
     }
 
+#if 0
+  g_print ("End Frame: textures=%u with_key=%u reverse=%u pool=%u:%u atlases=%u\n",
+           g_hash_table_size (self->textures),
+           g_hash_table_size (self->key_to_texture_id),
+           g_hash_table_size (self->texture_id_to_key),
+           self->texture_pool.by_width.length,
+           self->texture_pool.by_height.length,
+           self->atlases->len);
+#endif
+
   gsk_gl_texture_pool_clear (&self->texture_pool);
 
   self->in_frame = FALSE;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]