ProfilingTrigger.TriggerTypeOom 字段
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
注意
This constant will be removed in the future version. Use Android.OS.ProfilingTriggerType enum directly instead of this field.
当应用出现内存不足异常时,将发生触发器。
[Android.Runtime.Register("TRIGGER_TYPE_OOM", ApiSince=37)]
[System.Obsolete("This constant will be removed in the future version. Use Android.OS.ProfilingTriggerType enum directly instead of this field.", true)]
public const Android.OS.ProfilingTriggerType TriggerTypeOom = 7;
[<Android.Runtime.Register("TRIGGER_TYPE_OOM", ApiSince=37)>]
[<System.Obsolete("This constant will be removed in the future version. Use Android.OS.ProfilingTriggerType enum directly instead of this field.", true)>]
val mutable TriggerTypeOom : Android.OS.ProfilingTriggerType
字段值
Value = 7- 属性
注解
当应用出现内存不足异常时,将发生触发器。
系统将提供Java堆转储来响应此触发器。
使用此触发器要求任何自定义 Thread.UncaughtExceptionHandler 调用默认未捕获的异常处理程序(Thread.getDefaultUncaughtExceptionHandler())。 如果未调用默认未捕获的异常处理程序,则无法使用此触发器。 在这种情况下,应用仍然可以获取Java堆转储,但必须使用 ProfilingManager.requestProfiling 请求分析本身。
Android 参考。android.os.ProfilingTrigger.TRIGGER_TYPE_OOM
本页的某些部分是根据 Android 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。