Files
UnrealEngineUWP/Engine/Source/Developer/Profiler/Private/Widgets/SProfilerFPSChartPanel.h
ionut matasaru 1502e84e56 Disabled Profiler if STATS is not enabled (so Editor can compile also when ENABLE_STATNAMEDEVENTS is on).
#jira UE-140874
#fyi Brandon.Schaefer
#preflight 6201451e6773a3612898bddb
#rb none

[CL 18886574 by ionut matasaru in ue5-main branch]
2022-02-07 11:35:37 -05:00

56 lines
1.1 KiB
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "CoreMinimal.h"
#if STATS
#include "Widgets/DeclarativeSyntaxSupport.h"
#include "Widgets/SCompoundWidget.h"
#include "ProfilerManager.h"
class FFPSAnalyzer;
class SHistogram;
class SProfilerFPSStatisticsPanel;
/**
* A custom widget that acts as a container for widgets like SDataGraph or SEventTree.
*/
class SProfilerFPSChartPanel
: public SCompoundWidget
{
public:
SLATE_BEGIN_ARGS( SProfilerFPSChartPanel )
{}
SLATE_ARGUMENT( TSharedPtr<FFPSAnalyzer>, FPSAnalyzer )
SLATE_END_ARGS()
/** Virtual destructor. */
virtual ~SProfilerFPSChartPanel();
/**
* Construct this widget
*
* @param InArgs The declaration data for this widget
*/
void Construct( const FArguments& InArgs );
protected:
/** Called when the status of specified tracked stat has changed. */
void ProfilerManager_OnViewModeChanged(EProfilerViewMode NewViewMode);
protected:
/** The descriptions panel of the chart */
TSharedPtr<SHistogram> Histogram;
/** The descriptions panel of the chart */
TSharedPtr<SProfilerFPSStatisticsPanel> StatisticsPanel;
};
#endif // STATS