EM_Task/TraceInsights/Private/Insights/ViewModels/TimerAggregation.h

34 lines
978 B
C
Raw Normal View History

2026-02-13 16:18:33 +08:00
// 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