Browse Source

Merge remote-tracking branch 'origin/dev' into dev

dmuratshin 8 years ago
parent
commit
aef2cbf3af
1 changed files with 13 additions and 0 deletions
  1. 13 0
      oxygine/src/DebugActor.cpp

+ 13 - 0
oxygine/src/DebugActor.cpp

@@ -42,6 +42,10 @@
 #include "SDL_video.h"
 #endif
 
+#ifdef __ANDROID__
+#include <malloc.h>
+#endif
+
 #ifdef _WIN32
 #pragma comment(lib, "psapi.lib") // Added to support GetProcessMemoryInfo()
 #include <windows.h>
@@ -361,6 +365,15 @@ namespace oxygine
         s << "memory=" << mem / 1024 << "kb ";
 #endif
 
+#ifdef __ANDROID__
+        
+        
+        auto info = mallinfo();
+
+        s << "memory=" << info.uordblks / 1024 << "|" << info.fordblks / 1024 << "kb ";
+#endif
+
+
 #ifdef _WIN32
         PROCESS_MEMORY_COUNTERS_EX pmc;
         GetProcessMemoryInfo(GetCurrentProcess(), (PROCESS_MEMORY_COUNTERS*) &pmc, sizeof(pmc));