[gtk] broadway: add frame times to the profiler
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk] broadway: add frame times to the profiler
- Date: Fri, 24 May 2019 19:06:33 +0000 (UTC)
commit beedec1904ae12983acf0fa1a9f8f806a9020297
Author: Matthias Clasen <mclasen redhat com>
Date: Fri May 24 11:18:31 2019 +0000
broadway: add frame times to the profiler
gdk/broadway/gdksurface-broadway.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
---
diff --git a/gdk/broadway/gdksurface-broadway.c b/gdk/broadway/gdksurface-broadway.c
index 06b862c143..694c1da98f 100644
--- a/gdk/broadway/gdksurface-broadway.c
+++ b/gdk/broadway/gdksurface-broadway.c
@@ -135,7 +135,7 @@ _gdk_broadway_roundtrip_notify (GdkSurface *surface,
timings = gdk_frame_clock_get_timings (clock, impl->pending_frame_counter);
impl->pending_frame_counter = 0;
- /* If there is no remove web client, rate limit update to once a second */
+ /* If there is no remote web client, rate limit update to once a second */
if (local_reply)
g_timeout_add_seconds (1, (GSourceFunc)thaw_clock_cb, g_object_ref (clock));
else
@@ -152,6 +152,9 @@ _gdk_broadway_roundtrip_notify (GdkSurface *surface,
#ifdef G_ENABLE_DEBUG
if ((_gdk_debug_flags & GDK_DEBUG_FRAMES) != 0)
_gdk_frame_clock_debug_print_timings (clock, timings);
+
+ if (gdk_profiler_is_running ())
+ _gdk_frame_clock_add_timings_to_profiler (clock, timings);
#endif
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]