UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
BootProfiling.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
5#include "CoreTypes.h"
6
7// TODO: Consider moving boot timing stuff from CoreGlobals.h here in UE5 - involves adding a new include to 50+ files
8
10{
11 static CORE_API double GetBootDuration();
14 static CORE_API double GetEngineInitDuration();
15
16 enum class ECounterPhase
17 {
20 AllPhases, // combine all phases above
21 };
22
23 // These are to be called at the appropriate time during EngineInit
24 static CORE_API void InitCounters();
27 static CORE_API void OnInitComplete();
28
29 /* Returns the amount of times the app has been suspended (mobile/switch) during the specified phase.
30 * NOTE: returns -1 when an incorrect phase is passed.
31 */
33
34 /* Returns the amount of times the app has been activated (mobile/switch) during the specified phase.
35 * NOTE: returns -1 when an incorrect phase is passed.
36 */
38};
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
Definition BootProfiling.h:10
static CORE_API double GetEngineInitDuration()
Definition BootProfiling.cpp:31
static CORE_API int GetAppActivatedCounter(ECounterPhase phase)
Definition BootProfiling.cpp:87
static CORE_API void OnPreInitPostStartupScreenComplete()
Definition BootProfiling.cpp:41
static CORE_API int GetAppSuspendedCounter(ECounterPhase phase)
Definition BootProfiling.cpp:82
static CORE_API double GetPreInitPostStartupScreenDuration()
Definition BootProfiling.cpp:26
static CORE_API double GetPreInitPreStartupScreenDuration()
Definition BootProfiling.cpp:21
ECounterPhase
Definition BootProfiling.h:17
static CORE_API void OnInitComplete()
Definition BootProfiling.cpp:46
static CORE_API void InitCounters()
Definition BootProfiling.cpp:52
static CORE_API void OnPreInitPreStartupScreenComplete()
Definition BootProfiling.cpp:36
static CORE_API double GetBootDuration()
Definition BootProfiling.cpp:16