34 lines
978 B
C
34 lines
978 B
C
|
|
// Copyright Epic Games, Inc. All Rights Reserved.
|
||
|
|
|
||
|
|
#pragma once
|
||
|
|
|
||
|
|
#include "CoreMinimal.h"
|
||
|
|
|
||
|
|
#include "Insights/ViewModels/StatsAggregator.h"
|
||
|
|
#include "TraceServices/Containers/Tables.h"
|
||
|
|
#include "TraceServices/Model/TimingProfiler.h"
|
||
|
|
|
||
|
|
////////////////////////////////////////////////////////////////////////////////////////////////////
|
||
|
|
|
||
|
|
namespace Insights
|
||
|
|
{
|
||
|
|
|
||
|
|
////////////////////////////////////////////////////////////////////////////////////////////////////
|
||
|
|
|
||
|
|
class FTimerAggregator: public FStatsAggregator
|
||
|
|
{
|
||
|
|
public:
|
||
|
|
FTimerAggregator(): FStatsAggregator(TEXT("Timers")) {}
|
||
|
|
virtual ~FTimerAggregator() {}
|
||
|
|
|
||
|
|
Trace::ITable<Trace::FTimingProfilerAggregatedStats>* GetResultTable() const;
|
||
|
|
void ResetResults();
|
||
|
|
|
||
|
|
protected:
|
||
|
|
virtual IStatsAggregationWorker* CreateWorker(TSharedPtr<const Trace::IAnalysisSession> InSession) override;
|
||
|
|
};
|
||
|
|
|
||
|
|
////////////////////////////////////////////////////////////////////////////////////////////////////
|
||
|
|
|
||
|
|
} // namespace Insights
|