clutter: Add trace spans to event handling
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3417>
This commit is contained in:
parent
8f5d0c236e
commit
ce836e37e8
@ -11702,6 +11702,9 @@ clutter_actor_event (ClutterActor *actor,
|
||||
g_return_val_if_fail (CLUTTER_IS_ACTOR (actor), FALSE);
|
||||
g_return_val_if_fail (event != NULL, FALSE);
|
||||
|
||||
COGL_TRACE_BEGIN_SCOPED (Event, "Clutter::Actor::event()");
|
||||
COGL_TRACE_DESCRIBE (Event, _clutter_actor_get_debug_name (actor));
|
||||
|
||||
g_object_ref (actor);
|
||||
|
||||
event_type = clutter_event_type (event);
|
||||
|
@ -664,6 +664,8 @@ clutter_stage_process_event (ClutterStage *stage,
|
||||
ClutterContext *context;
|
||||
ClutterSeat *seat;
|
||||
|
||||
COGL_TRACE_BEGIN_SCOPED (ProcessEvent, "Clutter::Stage::process_event()");
|
||||
|
||||
context = _clutter_context_get_default ();
|
||||
seat = clutter_backend_get_default_seat (context->backend);
|
||||
|
||||
|
@ -709,6 +709,8 @@ _clutter_stage_process_queued_events (ClutterStage *stage)
|
||||
|
||||
g_return_if_fail (CLUTTER_IS_STAGE (stage));
|
||||
|
||||
COGL_TRACE_BEGIN_SCOPED (ProcessQueuedEvents, "Clutter::Stage::process_queued_events()");
|
||||
|
||||
priv = stage->priv;
|
||||
|
||||
if (priv->event_queue->length == 0)
|
||||
@ -735,6 +737,10 @@ _clutter_stage_process_queued_events (ClutterStage *stage)
|
||||
event = l->data;
|
||||
next_event = l->next ? l->next->data : NULL;
|
||||
|
||||
COGL_TRACE_BEGIN_SCOPED (ProcessEvent,
|
||||
"Clutter::Stage::process_queued_events#event()");
|
||||
COGL_TRACE_DESCRIBE (ProcessEvent, clutter_event_get_name (event));
|
||||
|
||||
device = clutter_event_get_device (event);
|
||||
|
||||
if (next_event != NULL)
|
||||
@ -4302,6 +4308,8 @@ clutter_stage_emit_event (ClutterStage *self,
|
||||
gboolean is_sequence_begin, is_sequence_end;
|
||||
ClutterEventType event_type;
|
||||
|
||||
COGL_TRACE_BEGIN_SCOPED (EmitEvent, "Clutter::Stage::emit_event()");
|
||||
|
||||
if (sequence != NULL)
|
||||
entry = g_hash_table_lookup (priv->touch_sequences, sequence);
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user