From e3cb425e5366ef96895b4cc465b73a194f72ff7b Mon Sep 17 00:00:00 2001 From: Shinwoo Kim Date: Fri, 1 Jul 2016 15:34:17 +0900 Subject: [PATCH] [ttrace] add more check points Change-Id: Ie2842456697eaed52a81f83d8203230c5672d9cd --- src/lib/ecore_evas/ecore_evas.c | 50 +++++++++++++++++++++++++++++++++++++++-- 1 file changed, 48 insertions(+), 2 deletions(-) diff --git a/src/lib/ecore_evas/ecore_evas.c b/src/lib/ecore_evas/ecore_evas.c index dca937e..c5721b8 100755 --- a/src/lib/ecore_evas/ecore_evas.c +++ b/src/lib/ecore_evas/ecore_evas.c @@ -4143,14 +4143,37 @@ EAPI Ecore_Evas * ecore_evas_wayland_shm_new(const char *disp_name, unsigned int parent, int x, int y, int w, int h, Eina_Bool frame) { +//TIZEN_ONLY(20160628): Add Performance log for cold booting +#ifdef ENABLE_TTRACE + traceBegin(TTRACE_TAG_EFL, "ecore_evas_wayland_shm_new"); +#endif +// + Ecore_Evas *(*new)(const char *, unsigned int, int, int, int, int, Eina_Bool); Eina_Module *m = _ecore_evas_engine_load("wayland"); +//TIZEN_ONLY(20160628): Add Performance log for cold booting +#ifdef ENABLE_TTRACE + if (!m) traceEnd(TTRACE_TAG_EFL); +#endif +// EINA_SAFETY_ON_NULL_RETURN_VAL(m, NULL); new = eina_module_symbol_get(m, "ecore_evas_wayland_shm_new_internal"); +//TIZEN_ONLY(20160628): Add Performance log for cold booting +#ifdef ENABLE_TTRACE + if (!new) traceEnd(TTRACE_TAG_EFL); +#endif +// EINA_SAFETY_ON_NULL_RETURN_VAL(new, NULL); - return new(disp_name, parent, x, y, w, h, frame); +//TIZEN_ONLY(20160628): Add Performance log for cold booting + Ecore_Evas *ret = new(disp_name, parent, x, y, w, h, frame); +#ifdef ENABLE_TTRACE + traceEnd(TTRACE_TAG_EFL); +#endif +// + + return ret; } EAPI Ecore_Evas * @@ -4171,14 +4194,37 @@ EAPI Ecore_Evas * ecore_evas_wayland_egl_options_new(const char *disp_name, unsigned int parent, int x, int y, int w, int h, Eina_Bool frame, const int *opt) { +//TIZEN_ONLY(20160628): Add Performance log for cold booting +#ifdef ENABLE_TTRACE + traceBegin(TTRACE_TAG_EFL, "ecore_evas_wayland_egl_options_new"); +#endif +// + Ecore_Evas *(*new)(const char *, unsigned int, int, int, int, int, Eina_Bool, const int *); Eina_Module *m = _ecore_evas_engine_load("wayland"); +//TIZEN_ONLY(20160628): Add Performance log for cold booting +#ifdef ENABLE_TTRACE + if (!m) traceEnd(TTRACE_TAG_EFL); +#endif +// EINA_SAFETY_ON_NULL_RETURN_VAL(m, NULL); new = eina_module_symbol_get(m, "ecore_evas_wayland_egl_options_new_internal"); +//TIZEN_ONLY(20160628): Add Performance log for cold booting +#ifdef ENABLE_TTRACE + if (!new) traceEnd(TTRACE_TAG_EFL); +#endif +// EINA_SAFETY_ON_NULL_RETURN_VAL(new, NULL); - return new(disp_name, parent, x, y, w, h, frame, opt); +//TIZEN_ONLY(20160628): Add Performance Clock log level + Ecore_Evas *ret = new(disp_name, parent, x, y, w, h, frame, opt); +#ifdef ENABLE_TTRACE + traceEnd(TTRACE_TAG_EFL); +#endif +// + + return ret; } EAPI void -- 2.7.4