語言

ProfilingTrigger.TriggerTypeOom 欄位

定義

警告

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

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於