Lingua

ProfilingTrigger.TriggerTypeOom Campo

Definizione

Attenzione

This constant will be removed in the future version. Use Android.OS.ProfilingTriggerType enum directly instead of this field.

Il trigger si verifica quando un'app ha un'eccezione di memoria insufficiente.

[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

Valore del campo

Value = 7
Attributi

Commenti

Il trigger si verifica quando un'app ha un'eccezione di memoria insufficiente.

Il sistema fornirà un dump dell'heap Java in risposta a questo trigger.

L'uso di questo trigger richiede che qualsiasi chiamata Personalizzata Thread.UncaughtExceptionHandler al gestore di eccezioni non rilevata predefinito (Thread.getDefaultUncaughtExceptionHandler()). Se il gestore di eccezioni non rilevate predefinito non viene chiamato, questo trigger non può essere usato. L'app può comunque ottenere un dump dell'heap Java in questo caso, ma dovrà richiedere la profilatura stessa usando ProfilingManager.requestProfiling.

Informazioni di riferimento su Android per android.os.ProfilingTrigger.TRIGGER_TYPE_OOM.

Le parti di questa pagina sono modifiche basate sul lavoro creato e condiviso dalla e usati in base ai termini descritti in Creative License 2.5 Attribution License.

Si applica a