28 lines
766 B
C++
Executable file
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;
|
|
|
|
};
|
|
|