語言

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

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於