#pragma once #include "CoreMinimal.h" #include "Subsystems/WorldSubsystem.h" #include "ProfileCategoryTiming.h" #include "ProfileEntry.h" #include "ProfilingSubSystem.generated.h" UCLASS(Blueprintable) class UProfilingSubSystem : public UWorldSubsystem { GENERATED_BODY() public: protected: UPROPERTY(BlueprintReadWrite, EditAnywhere, Transient, meta=(AllowPrivateAccess=true)) TArray Entries; public: UProfilingSubSystem(); UFUNCTION(BlueprintCallable, BlueprintPure) float GetTotalTime() const; UFUNCTION(BlueprintCallable, BlueprintPure) TArray GetEntries() const; UFUNCTION(BlueprintCallable, BlueprintPure) TArray GetCategoryTimings() const; };