Added ttrace point to trace fence waiting time. 76/228576/1
authorJoonbum Ko <joonbum.ko@samsung.com>
Thu, 19 Mar 2020 10:38:52 +0000 (19:38 +0900)
committerJoonbum Ko <joonbum.ko@samsung.com>
Fri, 20 Mar 2020 05:37:42 +0000 (14:37 +0900)
Change-Id: I79764f225b785d12cbb43d90d9e46f38b9dc4744
Signed-off-by: Joonbum Ko <joonbum.ko@samsung.com>
src/tpl_wayland_egl_thread.c

index 71aa8fd..1aab901 100755 (executable)
@@ -3220,6 +3220,8 @@ _twe_thread_fence_wait_source_dispatch(GSource *source, GSourceFunc cb, gpointer
 
        surf_source->render_done_cnt++;
 
+       TRACE_ASYNC_END((int)wait_source, "FENCE WAIT fd(%d)", wait_source->fence_fd);
+
        /* Since this source is going to be removed, acquire_and_commit must be
         * executed even in a situation other than G_IO_IN.
         * Nevertheless, there may be room for improvement. */
@@ -3271,6 +3273,8 @@ _twe_thread_fence_wait_source_attach(twe_wl_surf_source *surf_source,
                return TPL_ERROR_OUT_OF_MEMORY;
        }
 
+       TRACE_ASYNC_BEGIN((int)wait_source, "FENCE WAIT fd(%d)", sync_fd);
+
        tbm_surface_internal_ref(tbm_surface);
 
        wait_source->fence_fd = sync_fd;