aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/ecore/ecore.c
diff options
context:
space:
mode:
authorCedric BAIL <cedric.bail@samsung.com>2013-03-27 21:42:55 +0900
committerCedric BAIL <cedric.bail@samsung.com>2013-03-27 21:43:45 +0900
commit2063e4353d86bdd89d66f6aca69a480f92254b93 (patch)
treef21c0a269e491868ccbaf20728732ee9a05ddc37 /src/lib/ecore/ecore.c
parenteina: add eina_log_timing. (diff)
downloadefl-2063e4353d86bdd89d66f6aca69a480f92254b93.tar.gz
efl: integrate eina_log_timing.
Diffstat (limited to 'src/lib/ecore/ecore.c')
-rw-r--r--src/lib/ecore/ecore.c16
1 files changed, 12 insertions, 4 deletions
diff --git a/src/lib/ecore/ecore.c b/src/lib/ecore/ecore.c
index 4efb5631af..fbc0f7f143 100644
--- a/src/lib/ecore/ecore.c
+++ b/src/lib/ecore/ecore.c
@@ -135,8 +135,6 @@ ecore_init(void)
if (++_ecore_init_count != 1)
return _ecore_init_count;
- eo_init();
-
setlocale(LC_CTYPE, "");
/*
if (strcmp(nl_langinfo(CODESET), "UTF-8"))
@@ -156,6 +154,9 @@ ecore_init(void)
EINA_LOG_ERR("Ecore was unable to create a log domain.");
goto shutdown_log_dom;
}
+
+ eo_init();
+
if (getenv("ECORE_FPS_DEBUG")) _ecore_fps_debug = 1;
if (_ecore_fps_debug) _ecore_fps_debug_init();
if (!ecore_mempool_init()) goto shutdown_mempool;
@@ -194,10 +195,15 @@ ecore_init(void)
#endif
_ecore_parent = eo_add(ECORE_PARENT_CLASS, NULL);
+ eina_log_timing(_ecore_log_dom,
+ EINA_LOG_STATE_STOP,
+ EINA_LOG_STATE_INIT);
+
return _ecore_init_count;
shutdown_mempool:
ecore_mempool_shutdown();
+ eo_shutdown();
shutdown_log_dom:
eina_shutdown();
shutdown_evil:
@@ -205,8 +211,6 @@ shutdown_evil:
evil_shutdown();
#endif
- eo_shutdown();
-
return --_ecore_init_count;
}
@@ -238,6 +242,10 @@ ecore_shutdown(void)
if (--_ecore_init_count != 0)
goto unlock;
+ eina_log_timing(_ecore_log_dom,
+ EINA_LOG_STATE_START,
+ EINA_LOG_STATE_SHUTDOWN);
+
if (_ecore_fps_debug) _ecore_fps_debug_shutdown();
_ecore_coroutine_shutdown();
_ecore_poller_shutdown();