[mutter] clutter/actor: Optionally trace allocations
- From: Marge Bot <marge-bot src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter] clutter/actor: Optionally trace allocations
- Date: Thu, 29 Jul 2021 14:22:05 +0000 (UTC)
commit 6b1f49c153426731f60c2fef207e7a4ea9995d44
Author: Jonas Ã…dahl <jadahl gmail com>
Date: Wed Feb 3 00:05:41 2021 +0100
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>
clutter/clutter/clutter-actor.c | 10 ++++++++++
1 file changed, 10 insertions(+)
---
diff --git a/clutter/clutter/clutter-actor.c b/clutter/clutter/clutter-actor.c
index b471589a68..a8e5da59e8 100644
--- a/clutter/clutter/clutter-actor.c
+++ b/clutter/clutter/clutter-actor.c
@@ -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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]