cedric pushed a commit to branch master.
commit d2da83fed87fdf9a3f4c8cda0990f00b3dc68326
Author: Cedric Bail <[email protected]>
Date: Tue Aug 27 15:57:05 2013 +0900
ecore: fix function call order to actually make mallinfo call work.
---
src/lib/ecore/ecore.c | 17 ++++++++---------
1 file changed, 8 insertions(+), 9 deletions(-)
diff --git a/src/lib/ecore/ecore.c b/src/lib/ecore/ecore.c
index bd7f077..c563005 100644
--- a/src/lib/ecore/ecore.c
+++ b/src/lib/ecore/ecore.c
@@ -34,7 +34,6 @@
#if HAVE_MALLINFO
#include <malloc.h>
-
static Ecore_Version _version = { VMAJ, VMIN, VMIC, VREV };
EAPI Ecore_Version *ecore_version = &_version;
@@ -281,19 +280,20 @@ ecore_init(void)
eina_lock_new(&_ecore_main_loop_lock);
+#if defined(GLIB_INTEGRATION_ALWAYS)
+ if (_ecore_glib_always_integrate) ecore_main_loop_glib_integrate();
+#endif
+ _ecore_parent = eo_add(ECORE_PARENT_CLASS, NULL);
+
#if HAVE_MALLINFO
if (getenv("ECORE_MEM_STAT"))
{
_ecore_memory_pid = getpid();
ecore_animator_add(_ecore_memory_statistic, NULL);
+ _ecore_memory_statistic(NULL);
}
#endif
-#if defined(GLIB_INTEGRATION_ALWAYS)
- if (_ecore_glib_always_integrate) ecore_main_loop_glib_integrate();
-#endif
- _ecore_parent = eo_add(ECORE_PARENT_CLASS, NULL);
-
#ifdef HAVE_SYSTEMD
if (getenv("WATCHDOG_USEC"))
{
@@ -310,13 +310,12 @@ ecore_init(void)
}
#endif
+ ecore_system_modules_load();
+
eina_log_timing(_ecore_log_dom,
EINA_LOG_STATE_STOP,
EINA_LOG_STATE_INIT);
-
- ecore_system_modules_load();
-
return _ecore_init_count;
shutdown_mempool:
--
------------------------------------------------------------------------------
Introducing Performance Central, a new site from SourceForge and
AppDynamics. Performance Central is your source for news, insights,
analysis and resources for efficient Application Performance Management.
Visit us today!
http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk