From e5705bd1412b251d71b8dc287e2104290b3dffa8 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Fri, 13 Sep 2024 11:01:22 -0400 Subject: [PATCH] gsk: Add another profiler mark This lets us compare the cost of realizing the new renderers vs the old GL renderer. --- gsk/gpu/gskgpurenderer.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gsk/gpu/gskgpurenderer.c b/gsk/gpu/gskgpurenderer.c index f3e80ccda6..d6a8d1ead5 100644 --- a/gsk/gpu/gskgpurenderer.c +++ b/gsk/gpu/gskgpurenderer.c @@ -209,6 +209,7 @@ gsk_gpu_renderer_realize (GskRenderer *renderer, GskGpuRenderer *self = GSK_GPU_RENDERER (renderer); GskGpuRendererPrivate *priv = gsk_gpu_renderer_get_instance_private (self); GskGpuOptimizations context_optimizations; + G_GNUC_UNUSED gint64 start_time = GDK_PROFILER_CURRENT_TIME; priv->device = GSK_GPU_RENDERER_GET_CLASS (self)->get_device (display, error); if (priv->device == NULL) @@ -223,6 +224,8 @@ gsk_gpu_renderer_realize (GskRenderer *renderer, priv->optimizations &= context_optimizations; + gdk_profiler_end_mark (start_time, "Realize GskGpuRenderer", NULL); + return TRUE; }