[gtk/gtk-3-24: 1/11] FrameClock debug: Log drawn_time if set
- From: Alexander Larsson <alexl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/gtk-3-24: 1/11] FrameClock debug: Log drawn_time if set
- Date: Mon, 15 Jun 2020 10:50:25 +0000 (UTC)
commit c03480cbd3bd628d5dd8c9353474617d93b78b25
Author: Alexander Larsson <alexl redhat com>
Date: Mon May 18 16:56:33 2020 +0200
FrameClock debug: Log drawn_time if set
(cherry picked from commit e2a4be0243c3bd55153855465523a3d6f9843cc6)
gdk/gdkframeclock.c | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/gdk/gdkframeclock.c b/gdk/gdkframeclock.c
index a482354d7e..075e42ef8f 100644
--- a/gdk/gdkframeclock.c
+++ b/gdk/gdkframeclock.c
@@ -525,6 +525,8 @@ _gdk_frame_clock_debug_print_timings (GdkFrameClock *clock,
g_string_append_printf (str, " paint_start=%-4.1f", (timings->paint_start_time - timings->frame_time) /
1000.);
if (timings->frame_end_time != 0)
g_string_append_printf (str, " frame_end=%-4.1f", (timings->frame_end_time - timings->frame_time) /
1000.);
+ if (timings->drawn_time != 0)
+ g_string_append_printf (str, " drawn=%-4.1f", (timings->drawn_time - timings->frame_time) / 1000.);
if (timings->presentation_time != 0)
g_string_append_printf (str, " present=%-4.1f", (timings->presentation_time - timings->frame_time) /
1000.);
if (timings->predicted_presentation_time != 0)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]