mirror of
https://github.com/brl/mutter.git
synced 2025-02-26 17:54:10 +00:00
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:
parent
b0691d581a
commit
39e3415912
@ -1008,11 +1008,10 @@ _clutter_actor_get_debug_name (ClutterActor *actor)
|
|||||||
|
|
||||||
if (G_UNLIKELY (priv->debug_name == NULL))
|
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
|
priv->name != NULL ? priv->name
|
||||||
: "unnamed",
|
: "unnamed",
|
||||||
G_OBJECT_TYPE_NAME (actor),
|
G_OBJECT_TYPE_NAME (actor));
|
||||||
actor);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
retval = priv->debug_name;
|
retval = priv->debug_name;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user