Class StartupTimeline
What the client does between Play being pressed and the world running smoothly, as one report in the log: how long the freeze before the first frame lasted, when each scene arrived, how long the editor spent compiling shader variants (the cyan placeholders), every hitch with the scripts and loads that took its time, and where the whole start-up's time went. Editor only, off unless switched on (Dashboard → Maintenance → Diagnostics → Toggle start-up timeline, StartupTimelineToggle); never in batch mode (probes and tests).
public sealed class StartupTimeline : MonoBehaviour
- Inheritance
-
ObjectComponentBehaviourMonoBehaviourStartupTimeline
- Inherited Members
-
MonoBehaviour.IsInvoking()MonoBehaviour.CancelInvoke()MonoBehaviour.StopCoroutine(Coroutine)MonoBehaviour.StopAllCoroutines()MonoBehaviour.destroyCancellationTokenMonoBehaviour.useGUILayoutMonoBehaviour.didStartMonoBehaviour.didAwakeMonoBehaviour.runInEditModeBehaviour.enabledBehaviour.isActiveAndEnabledComponent.GetComponent<T>()Component.TryGetComponent<T>(out T)Component.GetComponentInChildren<T>()Component.GetComponentsInChildren<T>()Component.GetComponentInParent<T>()Component.GetComponentsInParent<T>()Component.GetComponents<T>()Component.GetComponentIndex()Component.CompareTag(TagHandle)Component.transformComponent.transformHandleComponent.gameObjectComponent.tagObject.GetEntityId()Object.GetInstanceID()Object.GetHashCode()Object.InstantiateAsync<T>(T)Object.InstantiateAsync<T>(T, Transform)Object.InstantiateAsync<T>(T, Vector3, Quaternion)Object.InstantiateAsync<T>(T, Transform, Vector3, Quaternion)Object.Instantiate(Object, Vector3, Quaternion)Object.Instantiate(Object, Vector3, Quaternion, Transform)Object.Instantiate(Object)Object.Instantiate(Object, Scene)Object.Instantiate<T>(T, InstantiateParameters)Object.Instantiate<T>(T, Vector3, Quaternion, InstantiateParameters)Object.Instantiate(Object, Transform)Object.Instantiate<T>(T)Object.Instantiate<T>(T, Vector3, Quaternion)Object.Instantiate<T>(T, Vector3, Quaternion, Transform)Object.Instantiate<T>(T, Transform)Object.Destroy(Object)Object.DestroyImmediate(Object)Object.DontDestroyOnLoad(Object)Object.DestroyObject(Object)Object.FindObjectsOfType<T>()Object.FindObjectsByType<T>(FindObjectsSortMode)Object.FindObjectsByType<T>(FindObjectsInactive, FindObjectsSortMode)Object.FindObjectOfType<T>()Object.FindFirstObjectByType<T>()Object.FindAnyObjectByType<T>()Object.FindFirstObjectByType<T>(FindObjectsInactive)Object.FindAnyObjectByType<T>(FindObjectsInactive)Object.FindObjectsByType<T>()Object.FindObjectsByType<T>(FindObjectsInactive)Object.ToString()Object.nameObject.hideFlags
Remarks
It ends once the world has been quiet — no hitch, no scene arriving, no shader compiling — for QuietSeconds, or after WindowSeconds whatever happens. Timing comes from Unity.Profiling.ProfilerRecorders on every script, loading and rendering marker Unity knows of (picked up again as new ones appear), so a hitch names the behaviour or load that spent it without anything being instrumented. Search Editor.log for "[StartupTimeline]".
Fields
EnabledKey
EditorPrefs switch: true records a report on every Play. Off by default.
public const string EnabledKey = "FishMMO.StartupTimeline.Enabled"
Field Value
HitchMilliseconds
A frame at least this long is a hitch.
public const float HitchMilliseconds = 50
Field Value
QuietSeconds
How long the world must be quiet before the report ends.
public const float QuietSeconds = 4
Field Value
WindowSeconds
The longest the report watches for, seconds after the first frame.
public const float WindowSeconds = 90
Field Value
Properties
Enabled
Whether a report is recorded on Play (EnabledKey).
public static bool Enabled { get; set; }