DRG-Femboy-Voice/Source/FSD/Public/ProfilingSubSystem.h
2025-04-15 12:39:31 -07:00

28 lines
766 B
C++
Executable file

#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<FProfileEntry> Entries;
public:
UProfilingSubSystem();
UFUNCTION(BlueprintCallable, BlueprintPure)
float GetTotalTime() const;
UFUNCTION(BlueprintCallable, BlueprintPure)
TArray<FProfileEntry> GetEntries() const;
UFUNCTION(BlueprintCallable, BlueprintPure)
TArray<FProfileCategoryTiming> GetCategoryTimings() const;
};