From 8a709b5766788d89bdb4cb22dfd01d83186589cc Mon Sep 17 00:00:00 2001 From: Georges Basile Stavracas Neto Date: Sat, 17 Oct 2020 12:24:13 -0300 Subject: [PATCH] clutter/stage: Add pick trace It will help profiling picking times, and compare this future patches with status quo. https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1509 --- clutter/clutter/clutter-stage.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/clutter/clutter/clutter-stage.c b/clutter/clutter/clutter-stage.c index 2a6a7e9be..9d1211076 100644 --- a/clutter/clutter/clutter-stage.c +++ b/clutter/clutter/clutter-stage.c @@ -1397,6 +1397,8 @@ _clutter_stage_do_pick_on_view (ClutterStage *stage, g_assert (context->pick_mode == CLUTTER_PICK_NONE); + COGL_TRACE_BEGIN_SCOPED (ClutterStagePickView, "Pick (view)"); + if (mode != priv->cached_pick_mode) { ClutterPickContext *pick_context;