[mutter/gbsneto/graphene-ray: 1/11] clutter/stage: Add pick trace




commit 7e6f2bcf8bab98cf9c9f9476157455cac5c11802
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date:   Sat Oct 17 12:24:13 2020 -0300

    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 70661ede0c..91b5684a01 100644
--- a/clutter/clutter/clutter-stage.c
+++ b/clutter/clutter/clutter-stage.c
@@ -1398,6 +1398,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;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]