summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilip Withnall <philip.withnall@collabora.co.uk>2015-09-17 16:27:14 +0100
committerPhilip Withnall <philip.withnall@collabora.co.uk>2015-09-21 17:02:39 +0100
commit5545b69a8f064d020f4b9c3532147c80f433ab63 (patch)
treeccc4238796843818f746a180129d21ad9ff8645e
parentae1a84853e4978092afec07aaead3e3a94f738f8 (diff)
downloadclutter-5545b69a8f064d020f4b9c3532147c80f433ab63.tar.gz
timeline: Add more debug output
https://bugzilla.gnome.org/show_bug.cgi?id=755357
-rw-r--r--clutter/clutter-timeline.c24
1 files changed, 22 insertions, 2 deletions
diff --git a/clutter/clutter-timeline.c b/clutter/clutter-timeline.c
index 5587cc0e1..612379fc3 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