Language

ProfilingTrigger.TriggerTypeColdStart Field

Definition

Caution

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

Trigger occurs as early as possible when an app cold starts.

[Android.Runtime.Register("TRIGGER_TYPE_COLD_START", 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 TriggerTypeColdStart = 10;
[<Android.Runtime.Register("TRIGGER_TYPE_COLD_START", 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 TriggerTypeColdStart : Android.OS.ProfilingTriggerType

Field Value

Value = 10
Attributes

Remarks

Trigger occurs as early as possible when an app cold starts.

This happens when the ApplicationStartInfo.getStartType() start type is ApplicationStartInfo.START_TYPE_COLD.

The system will provide a newly started system trace and stack sampling profile in response to this trigger. Profiling will continue until the app calls Activity.reportFullyDrawn(); otherwise, it will stop after a default period of 5 seconds.

The system uses a discard buffer for this trigger. This means that if the buffer fills up, newer events are discarded. This ensures that the earliest available tracepoints are always retained.

Note: There might be a delay before profiling begins, similar to when ProfilingManager.requestProfiling is used.

Android reference for android.os.ProfilingTrigger.TRIGGER_TYPE_COLD_START.

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.

Applies to