clutter/actor: Optionally trace allocations
If 'detailed-trace' is enabled, trace the allocation of every actor every frame, and pass along the type and name of the actor to sysprof. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1700>
This commit is contained in:
parent
5c7795dfa9
commit
6b1f49c153
1 changed files with 10 additions and 0 deletions
|
@ -9203,6 +9203,16 @@ clutter_actor_allocate (ClutterActor *self,
|
|||
!clutter_actor_has_mapped_clones (self))
|
||||
return;
|
||||
|
||||
COGL_TRACE_SCOPED_ANCHOR (ClutterActorAllocate);
|
||||
|
||||
if (G_UNLIKELY (clutter_debug_flags & CLUTTER_DEBUG_DETAILED_TRACE))
|
||||
{
|
||||
COGL_TRACE_BEGIN_ANCHORED (ClutterActorAllocate,
|
||||
"ClutterActor (allocate)");
|
||||
COGL_TRACE_DESCRIBE (ClutterActorAllocate,
|
||||
_clutter_actor_get_debug_name (self));
|
||||
}
|
||||
|
||||
old_allocation = priv->allocation;
|
||||
real_allocation = *box;
|
||||
|
||||
|
|
Loading…
Reference in a new issue