From c897302f874ac89c12ff2f225f70e18fe7ef3a74 Mon Sep 17 00:00:00 2001 From: Ivan Molodetskikh Date: Thu, 9 Nov 2023 10:06:25 +0400 Subject: [PATCH] cogl/framebuffer: Add trace spans to flush and finish Part-of: --- cogl/cogl/cogl-framebuffer.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cogl/cogl/cogl-framebuffer.c b/cogl/cogl/cogl-framebuffer.c index fe9086a98..2ae7fc707 100644 --- a/cogl/cogl/cogl-framebuffer.c +++ b/cogl/cogl/cogl-framebuffer.c @@ -49,6 +49,7 @@ #include "cogl/cogl1-context.h" #include "cogl/cogl-private.h" #include "cogl/cogl-primitives-private.h" +#include "cogl/cogl-trace.h" #include "cogl/winsys/cogl-winsys-private.h" enum @@ -1688,6 +1689,8 @@ cogl_framebuffer_finish (CoglFramebuffer *framebuffer) CoglFramebufferPrivate *priv = cogl_framebuffer_get_instance_private (framebuffer); + COGL_TRACE_BEGIN_SCOPED (Finish, "Cogl::Framebuffer::finish()"); + _cogl_framebuffer_flush_journal (framebuffer); cogl_framebuffer_driver_finish (priv->driver); @@ -1699,6 +1702,8 @@ cogl_framebuffer_flush (CoglFramebuffer *framebuffer) CoglFramebufferPrivate *priv = cogl_framebuffer_get_instance_private (framebuffer); + COGL_TRACE_BEGIN_SCOPED (Flush, "Cogl::Framebuffer::flush()"); + _cogl_framebuffer_flush_journal (framebuffer); cogl_framebuffer_driver_flush (priv->driver);