1
0
Fork 0

clutter/actor: Adjust trace actor name for better filtering

Tracy can filter its statistics by user text, in our case by span
description. It's useful to filter by actor type and name, and not so
much by the pointer. So, remove it, and also reduce the amount of
punctuation.

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3417>
This commit is contained in:
Ivan Molodetskikh 2023-10-09 11:08:54 +04:00 committed by Marge Bot
parent b0691d581a
commit 39e3415912

View file

@ -1008,11 +1008,10 @@ _clutter_actor_get_debug_name (ClutterActor *actor)
if (G_UNLIKELY (priv->debug_name == NULL))
{
priv->debug_name = g_strdup_printf ("<%s>[<%s>:%p]",
priv->debug_name = g_strdup_printf ("%s [%s]",
priv->name != NULL ? priv->name
: "unnamed",
G_OBJECT_TYPE_NAME (actor),
actor);
G_OBJECT_TYPE_NAME (actor));
}
retval = priv->debug_name;