ecore_main: add more ttrace tracking point
authorWonki Kim <wonki_.kim@samsung.com>
Fri, 15 May 2020 04:14:04 +0000 (13:14 +0900)
committerJongmin Lee <jm105.lee@samsung.com>
Sat, 16 May 2020 03:10:11 +0000 (12:10 +0900)
this patch adds more ttrace tracking point where loop sleeps

Change-Id: I4455b9299fc4a3d35fc5d5488900b0cbdfea8544

src/lib/ecore/ecore_main.c

index 3f3a3b4..2842203 100644 (file)
@@ -20,6 +20,8 @@
 #include <fcntl.h>
 #include <sys/time.h>
 
+#include "efl_tracing.h"
+
 #ifdef HAVE_SYSTEMD
 # include <systemd/sd-daemon.h>
 #endif
@@ -2009,10 +2011,12 @@ _ecore_main_select(Eo *obj, Efl_Loop_Data *pd, double timeout)
 
    eina_evlog("<RUN", NULL, 0.0, NULL);
    eina_evlog("!SLEEP", NULL, 0.0, t ? "timeout" : "forever");
+   traceTaskStart("mainloop sleep");
    if (obj == ML_OBJ)
      ret = main_loop_select(max_fd + 1, &rfds, &wfds, &exfds, t);
    else
      ret = general_loop_select(max_fd + 1, &rfds, &wfds, &exfds, t);
+   traceTaskEnd();
 #ifndef _WIN32
    err_no = errno;
 #endif