[clutter] timeline: Add more debug output



commit 5545b69a8f064d020f4b9c3532147c80f433ab63
Author: Philip Withnall <philip withnall collabora co uk>
Date:   Thu Sep 17 16:27:14 2015 +0100

    timeline: Add more debug output
    
    https://bugzilla.gnome.org/show_bug.cgi?id=755357

 clutter/clutter-timeline.c |   24 ++++++++++++++++++++++--
 1 files changed, 22 insertions(+), 2 deletions(-)
---
diff --git a/clutter/clutter-timeline.c b/clutter/clutter-timeline.c
index 5587cc0..612379f 100644
--- a/clutter/clutter-timeline.c
+++ b/clutter/clutter-timeline.c
@@ -1007,9 +1007,12 @@ clutter_timeline_do_frame (ClutterTimeline *timeline)
 
   g_object_ref (timeline);
 
-  CLUTTER_NOTE (SCHEDULER, "Timeline [%p] activated (elapsed time: %ld)\n",
+  CLUTTER_NOTE (SCHEDULER, "Timeline [%p] activated (elapsed time: %ld, "
+                "duration: %ld, msecs_delta: %ld)\n",
                 timeline,
-                (long) priv->elapsed_time);
+                (long) priv->elapsed_time,
+                (long) priv->duration,
+                (long) priv->msecs_delta);
 
   /* Advance time */
   if (priv->direction == CLUTTER_TIMELINE_FORWARD)
@@ -1685,6 +1688,14 @@ _clutter_timeline_advance (ClutterTimeline *timeline,
 
   g_object_ref (timeline);
 
+  CLUTTER_NOTE (SCHEDULER,
+                "Timeline [%p] advancing (cur: %ld, tot: %ld, "
+                "tick_time: %lu)",
+                timeline,
+                (long) priv->elapsed_time,
+                (long) priv->msecs_delta,
+                (long) tick_time);
+
   priv->msecs_delta = tick_time;
   priv->is_playing = TRUE;
 
@@ -1713,6 +1724,15 @@ _clutter_timeline_do_tick (ClutterTimeline *timeline,
 
   priv = timeline->priv;
 
+  CLUTTER_NOTE (SCHEDULER,
+                "Timeline [%p] ticked (elapsed_time: %ld, msecs_delta: %ld, "
+                "last_frame_time: %ld, tick_time: %ld)",
+                timeline,
+                (long) priv->elapsed_time,
+                (long) priv->msecs_delta,
+                (long) priv->last_frame_time,
+                (long) tick_time);
+
   /* Check the is_playing variable before performing the timeline tick.
    * This is necessary, as if a timeline is stopped in response to a
    * master-clock generated signal of a different timeline, this code can


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]