2019-12-26 15:32:37 -05:00
|
|
|
// Copyright Epic Games, Inc. All Rights Reserved.
|
2019-06-03 15:32:00 -04:00
|
|
|
|
2019-10-03 16:26:48 -04:00
|
|
|
#include "Processor.h"
|
2019-06-03 15:32:00 -04:00
|
|
|
#include "Trace/Analysis.h"
|
|
|
|
|
|
2020-11-17 06:54:28 -04:00
|
|
|
namespace UE {
|
|
|
|
|
namespace Trace {
|
2019-06-03 15:32:00 -04:00
|
|
|
|
|
|
|
|
////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
void FAnalysisContext::AddAnalyzer(IAnalyzer& Analyzer)
|
|
|
|
|
{
|
|
|
|
|
Analyzers.Add(&Analyzer);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
////////////////////////////////////////////////////////////////////////////////
|
2019-10-03 16:26:48 -04:00
|
|
|
FAnalysisProcessor FAnalysisContext::Process(IInDataStream& DataStream)
|
2019-06-03 15:32:00 -04:00
|
|
|
{
|
|
|
|
|
FAnalysisProcessor Processor;
|
2019-10-03 16:26:48 -04:00
|
|
|
if (Analyzers.Num() > 0)
|
2019-06-03 15:32:00 -04:00
|
|
|
{
|
2019-10-03 16:26:48 -04:00
|
|
|
Processor.Impl = new FAnalysisProcessor::FImpl(DataStream, MoveTemp(Analyzers));
|
2019-06-03 15:32:00 -04:00
|
|
|
}
|
|
|
|
|
return MoveTemp(Processor);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
} // namespace Trace
|
2020-11-17 06:54:28 -04:00
|
|
|
} // namespace UE
|