mirror of
https://github.com/brl/mutter.git
synced 2024-11-24 09:00:42 -05:00
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
@ -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 New Issue
Block a user