You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
#rnx #rb none #ROBOMERGE-SOURCE: CL 10869240 via CL 10869516 via CL 10869902 #ROBOMERGE-BOT: (v613-10869866) [CL 10870584 by ryan durand in Main branch]
49 lines
888 B
C++
49 lines
888 B
C++
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
#pragma once
|
|
|
|
#include "CoreMinimal.h"
|
|
#include "VisualizerEvents.h"
|
|
|
|
class SWindow;
|
|
|
|
struct FRealtimeProfilerFPSChartFrame
|
|
{
|
|
FRealtimeProfilerFPSChartFrame()
|
|
:UnitFrame(0)
|
|
,UnitRender(0)
|
|
,UnitGame(0)
|
|
,UnitGPU(0)
|
|
{
|
|
}
|
|
|
|
FRealtimeProfilerFPSChartFrame(FRealtimeProfilerFPSChartFrame * InCopyFrom)
|
|
:UnitFrame(InCopyFrom->UnitFrame)
|
|
,UnitRender(InCopyFrom->UnitRender)
|
|
,UnitGame(InCopyFrom->UnitGame)
|
|
,UnitGPU(InCopyFrom->UnitGPU)
|
|
{
|
|
}
|
|
|
|
float UnitFrame;
|
|
float UnitRender;
|
|
float UnitGame;
|
|
float UnitGPU;
|
|
};
|
|
|
|
class FRealtimeProfiler
|
|
{
|
|
public:
|
|
|
|
FRealtimeProfiler();
|
|
~FRealtimeProfiler();
|
|
void Update(TSharedPtr< FVisualizerEvent > InProfileData, FRealtimeProfilerFPSChartFrame * InFPSChartFrame);
|
|
bool IsProfiling();
|
|
|
|
private:
|
|
void MakeWindow();
|
|
//TSharedPtr<SRealtimeProfilerFrame> Frame;
|
|
TWeakPtr<SWindow> Window;
|
|
};
|
|
|