语言

ProfilingTrigger.TriggerTypeColdStart 字段

定义

注意

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

应用冷启动时,会尽早发生触发器。

[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

字段值

Value = 10
属性

注解

应用冷启动时,会尽早发生触发器。

当 ApplicationStartInfo.getStartType() 启动类型ApplicationStartInfo.START_TYPE_COLD时,将发生这种情况。

系统将提供新启动的系统跟踪和堆栈采样配置文件,以响应此触发器。 分析将继续,直到应用调用 Activity.reportFullyDrawn():否则,它将在默认期限为 5 秒后停止。

系统为此触发器使用放弃缓冲区。 这意味着,如果缓冲区填满,则丢弃较新的事件。 这可确保始终保留最早的可用跟踪点。

注意:分析开始前可能存在延迟,类似于使用 ProfilingManager.requestProfiling 的时间。

Android 参考。android.os.ProfilingTrigger.TRIGGER_TYPE_COLD_START

本页的某些部分是根据 Android 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。

适用于