From: joonbum.ko Date: Fri, 5 Jan 2018 05:57:05 +0000 (+0900) Subject: tpl_wayland_egl_thread: Added useful trace logs for vulkan. X-Git-Tag: accepted/tizen/unified/20180208.163715~10 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F83%2F169083%2F1;p=platform%2Fcore%2Fuifw%2Flibtpl-egl.git tpl_wayland_egl_thread: Added useful trace logs for vulkan. Change-Id: Ie37f9075a72856747c6259a73e3af381aec10ba8 Signed-off-by: joonbum.ko --- diff --git a/src/tpl_wayland_egl_thread.c b/src/tpl_wayland_egl_thread.c index 8d0d640..7704956 100644 --- a/src/tpl_wayland_egl_thread.c +++ b/src/tpl_wayland_egl_thread.c @@ -1400,6 +1400,9 @@ _twe_surface_set_wl_buffer_info(twe_wl_surf_source *surf_source, TPL_OBJECT_UNLOCK(&surf_source->obj); } + TRACE_MARK("[SET_BUFFER_INFO] BO(%d)", + tbm_bo_export(tbm_surface_internal_get_bo(tbm_surface, 0))); + TPL_LOG_T(BACKEND, "[REUSE_BUF] buf_info(%p) tbm_surface(%p) bo(%d) (%dx%d) transform(%d)", buf_info, tbm_surface, @@ -1493,6 +1496,8 @@ _twe_surface_set_wl_buffer_info(twe_wl_surf_source *surf_source, TPL_OBJECT_UNLOCK(&surf_source->obj); } + TRACE_MARK("[SET_BUFFER_INFO] BO(%d)", + tbm_bo_export(tbm_surface_internal_get_bo(tbm_surface, 0))); TPL_LOG_T(BACKEND, "[NEW_BUF] buf_info(%p) tbm_surface(%p) bo(%d) (%dx%d) transform(%d)", buf_info, tbm_surface, @@ -1610,6 +1615,8 @@ __cb_tdm_client_wait_vblank(tdm_client_vblank *vblank, tdm_error error, return; } + TRACE_ASYNC_END((int)surf_source, "WAIT_VBLANK"); + disp_source = surf_source->disp_source; surf_source->vblank_done = TPL_TRUE; @@ -1690,9 +1697,10 @@ _twe_surface_wait_vblank(twe_wl_surf_source *surf_source) __cb_tdm_client_wait_vblank, (void *)surf_source); - if (tdm_err == TDM_ERROR_NONE) + if (tdm_err == TDM_ERROR_NONE) { surf_source->vblank_done = TPL_FALSE; - else { + TRACE_ASYNC_BEGIN((int)surf_source, "WAIT_VBLANK"); + } else { TPL_ERR("Failed to tdm_client_vblank_wait. tdm_err(%d)", tdm_err); return TPL_ERROR_INVALID_OPERATION; }