Language

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.getDefaultUncaughtExceptionHandler()) へのカスタム Thread.UncaughtExceptionHandler 呼び出しが必要です。 既定のキャッチされない例外ハンドラーが呼び出されない場合、このトリガーは使用できません。 この場合もアプリはJavaヒープ ダンプを取得できますが、ProfilingManager.requestProfiling を使用してプロファイリング自体を要求する必要があります。

android.os.ProfilingTrigger.TRIGGER_TYPE_OOMの Android リファレンス。

このページの一部は、によって作成および共有され、に記載されている条件に従って使用される作業に基づく変更です。

適用対象