A singleton to keep track of the exclusive load time of every package. 更多...
#include <ExclusiveLoadPackageTimeTracker.h>
类 | |
| struct | FScopedEndLoadTracker |
| Scoped helper for EndLoad 更多... | |
| struct | FScopedPackageTracker |
| Scoped helper for LoadPackage 更多... | |
| struct | FScopedPostLoadTracker |
| Scoped helper for PostLoad 更多... | |
静态 Public 成员函数 | |
| static FORCEINLINE void | DumpReport (const TArray< FString > &Args) |
| Displays the data gathered in various ways. | |
| static FORCEINLINE double | GetExclusiveLoadTime (FName PackageName) |
| Returns the load time for the specified package, excluding its dependencies | |
| static FORCEINLINE double | GetInclusiveLoadTime (FName PackageName) |
| Returns the load time for the specified package, including its dependencies | |
| static FORCEINLINE void | PopEndLoad () |
| Records some time spent in "EndLoad" | |
| static FORCEINLINE void | PopLoadPackage (UPackage *LoadedPackage) |
| Records a time and stats for the loaded package. | |
| static FORCEINLINE void | PopPostLoad (UObject *PostLoadObject) |
| Records a time and stats for the loaded package. 更多... | |
| static FORCEINLINE void | PushEndLoad () |
| Starts a time for time spent in "EndLoad" | |
| static FORCEINLINE void | PushLoadPackage (FName PackageName) |
| Starts a time for the specified package name. | |
| static FORCEINLINE bool | PushPostLoad (UObject *PostLoadObject) |
| Starts a time for the specified package name. | |
| static FORCEINLINE void | ResetReport () |
| Resets the data. | |
A singleton to keep track of the exclusive load time of every package.
Also reports inclusive load time for convenience. The code that loads packages "pushes" a load on the tracker which will record the time the package started loading. Later that package will be "popped" which will cause the tracker to record the time spent. If another package is pushed while this is happening, it will pause the time recorded from the first package and start a new time for the second. This is recursive. DumpReport() can be used to log out all the recorded values in a couple different ways to get an idea about what packages are the slowest to load.
|
inlinestatic |
Records a time and stats for the loaded package.
Optionally provide the loaded asset if it is known, otherwise the asset in the package is detected.