summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJonas Ã…dahl <jadahl@gmail.com>2020-11-30 12:04:48 +0100
committerMarge Bot <marge-bot@gnome.org>2020-12-01 11:41:11 +0000
commitc56433d6eeddc3b41025d5f155f8ada70b6c360e (patch)
tree92b355166df82cea4b78a20394d05a74fa9cc31d /src
parentd43c8cd8425fe1ab83c1c959a07f99c21f4844c4 (diff)
downloadmutter-c56433d6eeddc3b41025d5f155f8ada70b6c360e.tar.gz
wayland/buffer: Trace instrument buffer-attach
While browsing sysprof profiling reports, I saw surface-commit taking significant times sometimes; trace attach too, to see whether such things are due to e.g. texture uploads. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1616>
Diffstat (limited to 'src')
-rw-r--r--src/wayland/meta-wayland-buffer.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/wayland/meta-wayland-buffer.c b/src/wayland/meta-wayland-buffer.c
index 6c339e813..211c85ff0 100644
--- a/src/wayland/meta-wayland-buffer.c
+++ b/src/wayland/meta-wayland-buffer.c
@@ -530,6 +530,8 @@ meta_wayland_buffer_attach (MetaWaylandBuffer *buffer,
{
g_return_val_if_fail (buffer->resource, FALSE);
+ COGL_TRACE_BEGIN_SCOPED (MetaWaylandBufferAttach, "WaylandBuffer (attach)");
+
if (!meta_wayland_buffer_is_realized (buffer))
{
/* The buffer should have been realized at surface commit time */