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
This commit is contained in:
Georges Basile Stavracas Neto 2020-10-17 12:24:13 -03:00
parent a43821311b
commit 8a709b5766

View File

@ -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;