[mutter] clutter/actor: Optionally trace painting
- From: Marge Bot <marge-bot src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter] clutter/actor: Optionally trace painting
- Date: Thu, 29 Jul 2021 14:22:05 +0000 (UTC)
commit 5c7795dfa91229237f27d10597b2d5db97890a4f
Author: Jonas Ã…dahl <jadahl gmail com>
Date: Wed Feb 3 00:04:51 2021 +0100
clutter/actor: Optionally trace painting
If 'detailed-trace' is enabled, trace the painting 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 e32e878dcb..b471589a68 100644
--- a/clutter/clutter/clutter-actor.c
+++ b/clutter/clutter/clutter-actor.c
@@ -3651,6 +3651,16 @@ clutter_actor_paint (ClutterActor *self,
if (!CLUTTER_ACTOR_IS_MAPPED (self))
return;
+ COGL_TRACE_SCOPED_ANCHOR (ClutterActorPaint);
+
+ if (G_UNLIKELY (clutter_debug_flags & CLUTTER_DEBUG_DETAILED_TRACE))
+ {
+ COGL_TRACE_BEGIN_ANCHORED (ClutterActorPaint,
+ "ClutterActor (paint)");
+ COGL_TRACE_DESCRIBE (ClutterActorPaint,
+ _clutter_actor_get_debug_name (self));
+ }
+
actor_node = clutter_actor_node_new (self, -1);
root_node = clutter_paint_node_ref (actor_node);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]