All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
AndroidMemoryInfo.h
1 // Copyright eeGeo Ltd (2012-2014), All Rights Reserved
2 
3 #pragma once
4 
5 #include <jni.h>
6 #include "Types.h"
7 
8 namespace Eegeo
9 {
10  namespace Android
11  {
13  {
14  public:
15 
16  size_t totalPrivateDirty;
17  size_t nativePrivateDirty;
18  size_t dalvikPrivateDirty;
19 
20  static AndroidMemoryInfo GetMemoryInfo(JNIEnv *env);
21 
22  private:
23 
24  AndroidMemoryInfo(size_t _totalPrivateDirty,
25  size_t _nativePrivateDirty,
26  size_t _dalvikPrivateDirty);
27 
28  static jclass debugClass;
29  static jmethodID getMemoryInfoMethod;
30  static jobject memoryInfo;
31  static jmethodID getTotalPrivateDirtyMethod;
32  static jfieldID dalvikPrivateDirtyField;
33  static jfieldID nativePrivateDirtyField;
34 
35  static void Initialize(JNIEnv *env);
36  };
37  }
38 }