Class ZegoMEMUtils


  • public class ZegoMEMUtils
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      ZegoMEMUtils()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static double getAppUsedMemory​(android.content.Context context, int pid)
      获取 app 使用的内存,单位 MB
      static double getTotalMemory​(android.content.Context context)
      获取内存总量,单位 MB
      static double getUsedMemory​(android.content.Context context)
      获取已使用的内存总量,单位 MB
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ZegoMEMUtils

        public ZegoMEMUtils()
    • Method Detail

      • getTotalMemory

        public static double getTotalMemory​(android.content.Context context)
        获取内存总量,单位 MB
      • getUsedMemory

        public static double getUsedMemory​(android.content.Context context)
        获取已使用的内存总量,单位 MB
      • getAppUsedMemory

        public static double getAppUsedMemory​(android.content.Context context,
                                              int pid)
        获取 app 使用的内存,单位 MB