EM_Task/TraceInsights/Private/Insights/ViewModels/CounterAggregation.h
Boshuang Zhao 5144a49c9b add
2026-02-13 16:18:33 +08:00

33 lines
937 B
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "CoreMinimal.h"
#include "Insights/ViewModels/StatsAggregator.h"
#include "Insights/ViewModels/StatsNode.h"
////////////////////////////////////////////////////////////////////////////////////////////////////
namespace Insights
{
////////////////////////////////////////////////////////////////////////////////////////////////////
class FCounterAggregator: public FStatsAggregator
{
public:
FCounterAggregator(): FStatsAggregator(TEXT("Counters")) {}
virtual ~FCounterAggregator() {}
void ApplyResultsTo(const TMap<uint32, FStatsNodePtr>& StatsNodesIdMap) const;
void ResetResults();
protected:
virtual IStatsAggregationWorker* CreateWorker(TSharedPtr<const Trace::IAnalysisSession> InSession) override;
};
////////////////////////////////////////////////////////////////////////////////////////////////////
} // namespace Insights