ProfilingTrigger.TriggerTypeOom Champ
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Attention
This constant will be removed in the future version. Use Android.OS.ProfilingTriggerType enum directly instead of this field.
Le déclencheur se produit lorsqu’une application a une exception de mémoire insuffisante.
[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
Valeur de champ
Value = 7- Attributs
Remarques
Le déclencheur se produit lorsqu’une application a une exception de mémoire insuffisante.
Le système fournit un vidage de tas Java en réponse à ce déclencheur.
L’utilisation de ce déclencheur nécessite que tout appel thread.UncaughtExceptionHandler personnalisé via le gestionnaire d’exceptions non intercepté par défaut (Thread.getDefaultUncaughtExceptionHandler()). Si le gestionnaire d’exceptions non intercepté par défaut n’est pas appelé, ce déclencheur ne peut pas être utilisé. L’application peut toujours obtenir un vidage de tas Java dans ce cas, mais elle devra demander le profilage lui-même à l’aide de ProfilingManager.requestProfiling.
Référence Android pour android.os.ProfilingTrigger.TRIGGER_TYPE_OOM.
Les parties de cette page sont des modifications basées sur le travail créé et partagé par Android Open Source et utilisées en fonction des termes décrits dans la Creative Commons 2.5 Attribution License.