clutter/timeline: Add trace spans

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3417>
This commit is contained in:
Ivan Molodetskikh 2023-10-12 09:40:38 +04:00 committed by Marge Bot
parent ce836e37e8
commit 72bbb1416e

View File

@ -986,6 +986,8 @@ emit_frame_signal (ClutterTimeline *timeline)
{
ClutterTimelinePrivate *priv = timeline->priv;
COGL_TRACE_BEGIN_SCOPED (Emit, "Clutter::Timeline::emit_frame_signal()");
/* see bug https://bugzilla.gnome.org/show_bug.cgi?id=654066 */
gint elapsed = (gint) priv->elapsed_time;
@ -1683,6 +1685,8 @@ _clutter_timeline_do_tick (ClutterTimeline *timeline,
{
ClutterTimelinePrivate *priv;
COGL_TRACE_BEGIN_SCOPED (DoTick, "Clutter::Timeline::do_tick()");
priv = timeline->priv;
CLUTTER_NOTE (SCHEDULER,