e_hwc_windows: add ttrace at e_hwc_windows_commit 68/293268/1
authorChangyeon Lee <cyeon.lee@samsung.com>
Mon, 22 May 2023 06:37:38 +0000 (15:37 +0900)
committerTizen Window System <tizen.windowsystem@gmail.com>
Tue, 23 May 2023 09:31:04 +0000 (18:31 +0900)
Change-Id: I5f3c06dc84076e76dff07eae7754ae08a4b12444

src/bin/e_hwc_windows.c

index e533669..e6ec8f9 100644 (file)
@@ -439,6 +439,7 @@ _e_hwc_windows_commit_handler(tdm_hwc *thwc, unsigned int sequence,
    EINA_SAFETY_ON_NULL_RETURN(hwc);
 
    EHWSTRACE("!!!!!!!! HWC Commit Handler !!!!!!!!", NULL, hwc);
+   TRACE_DS_MARK(_e_hwc_windows_commit_handler);
 
    /* 'wait_commit' is mechanism to make 'fetch and commit' no more than one time per a frame;
     * a 'page flip' happened so it's time to allow to make 'fetch and commit' for the e_output */
@@ -3458,6 +3459,8 @@ e_hwc_windows_commit(E_Hwc *hwc, E_Output_Display_Mode display_mode)
         return EINA_TRUE;
      }
 
+   TRACE_DS_BEGIN(e_hwc_windows_commit);
+
    if (!_e_hwc_windows_changes_update(hwc))
      goto update_done;
 
@@ -3522,6 +3525,7 @@ e_hwc_windows_commit(E_Hwc *hwc, E_Output_Display_Mode display_mode)
    e_comp_wl_tizen_hwc_committed();
    _e_hwc_windows_sync_callback_call(hwc);
 
+   TRACE_DS_END();
    return EINA_TRUE;
 
 update_done:
@@ -3531,9 +3535,11 @@ update_done:
         _e_hwc_windows_sync_callback_call(hwc);
      }
 
+   TRACE_DS_END();
    return EINA_TRUE;
 
 re_evaluate:
+   TRACE_DS_END();
    return EINA_TRUE;
 
 fail:
@@ -3541,6 +3547,7 @@ fail:
    e_comp_wl_tizen_hwc_discarded();
    _e_hwc_windows_wait_commit_set(hwc, EINA_FALSE);
 
+   TRACE_DS_END();
    return EINA_FALSE;
 }