ProfilingTrigger.TriggerTypeOom Field
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Caution
This constant will be removed in the future version. Use Android.OS.ProfilingTriggerType enum directly instead of this field.
Trigger occurs when an app has an Out Of Memory Exception.
[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
Field Value
Value = 7- Attributes
Remarks
Trigger occurs when an app has an Out Of Memory Exception.
System will provide a Java heap dump in response to this trigger.
Use of this trigger requires that any custom Thread.UncaughtExceptionHandler call through to the default uncaught exception handler (Thread.getDefaultUncaughtExceptionHandler()). If the default uncaught exception handler is not called, then this trigger cannot be used. The app can still obtain a Java heap dump in this case, but will have to request the profiling itself using ProfilingManager.requestProfiling.
Android reference for android.os.ProfilingTrigger.TRIGGER_TYPE_OOM.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.